Skip to content

Commit

Permalink
webapp: optimize look of firmware update cards
Browse files Browse the repository at this point in the history
  • Loading branch information
schlimmchen authored and tbnobody committed Nov 1, 2024
1 parent 54b4a2e commit e724fb8
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions webapp/src/views/FirmwareUpgradeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,15 @@
<p class="h1 mb-2">
<BIconExclamationCircleFill />
</p>

<span style="vertical-align: middle" class="ml-2">
{{ OTAError }}
</span>
<br />
<br />
<button class="btn btn-light" @click="clear"><BIconArrowLeft /> {{ $t('firmwareupgrade.Back') }}</button>
<button class="btn btn-primary" @click="retryOTA">
<BIconArrowRepeat /> {{ $t('firmwareupgrade.Retry') }}
</button>
{{ OTAError }}
<div class="mt-3 d-flex gap-3 justify-content-center">
<button class="btn btn-light" @click="clear">
<BIconArrowLeft /> {{ $t('firmwareupgrade.Back') }}
</button>
<button class="btn btn-primary" @click="retryOTA">
<BIconArrowRepeat /> {{ $t('firmwareupgrade.Retry') }}
</button>
</div>
</CardElement>

<CardElement
Expand All @@ -35,10 +34,7 @@
center-content
v-else-if="!loading && !uploading && OTASuccess"
>
<span class="h1 mb-2">
<BIconCheckCircle />
</span>
<span> {{ $t('firmwareupgrade.OtaSuccess') }} </span>
<BIconCheckCircle class="fs-1" />&nbsp;{{ $t('firmwareupgrade.OtaSuccess') }}
</CardElement>

<CardElement
Expand All @@ -47,7 +43,7 @@
center-content
v-else-if="!loading && !uploading"
>
<div class="form-group pt-2 mt-3">
<div class="form-group">
<input class="form-control" type="file" ref="file" accept=".bin,.bin.gz" @change="uploadOTA" />
</div>
</CardElement>
Expand Down

0 comments on commit e724fb8

Please sign in to comment.