Skip to content

Commit

Permalink
fix(ui): disable ota updates while upgrading (#3357)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando authored Oct 18, 2023
1 parent 5345835 commit d68f33a
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions src/components/nodes-table/OTAUpdates.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<v-container grid-list-md>
<v-row class="ml-5">
<v-col cols="12">
<v-col v-show="!node.firmwareUpdate" cols="12">
<v-row justify="center" class="mb-2 text-center" dense>
<v-btn
:disabled="loading"
Expand Down Expand Up @@ -29,7 +29,7 @@
</v-row>
</v-col>

<template v-if="filteredUpdates.length > 0">
<template v-if="filteredUpdates.length > 0 && !node.firmwareUpdate">
<v-col
cols="12"
sm="6"
Expand Down Expand Up @@ -103,10 +103,17 @@
</v-card>
</v-col>
</template>
<v-col class="text-center" v-else-if="loading">
<v-col
class="text-center"
v-else-if="loading || node.firmwareUpdate"
>
<v-progress-circular indeterminate color="primary" />
<p class="text-caption">
Remember to wake up sleeping devices...
{{
node.firmwareUpdate
? 'Update in progress...'
: 'Remember to wake up sleeping devices...'
}}
</p>
</v-col>
<v-col class="text-center" v-else>
Expand Down Expand Up @@ -192,7 +199,9 @@ export default {
if (
await this.$listeners.showConfirm(
'OTA Update',
`<p>Are you sure you want to update node to <b>v${update.version}</b>?</p>
`<p>Are you sure you want to ${
update.downgrade ? 'downgrade' : 'update'
} node to <b>v${update.version}</b>?</p>
<p><strong>We don't take any responsibility if devices upgraded using Z-Wave JS don't work after an update. Always double-check that the correct update is about to be installed</strong></p>
Expand Down

0 comments on commit d68f33a

Please sign in to comment.