Skip to content

Commit

Permalink
fix(ui): inconsistency in ota popup warning
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Nov 14, 2023
1 parent 91376a3 commit 8378946
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/components/nodes-table/OTAUpdates.vue
Original file line number Diff line number Diff line change
Expand Up @@ -198,19 +198,21 @@ export default {
async updateFirmware(update) {
if (
await this.$listeners.showConfirm(
'OTA Update',
`OTA ${update.downgrade ? 'Downgrade' : 'Upgrade'}`,
`<p>Are you sure you want to ${
update.downgrade ? 'downgrade' : 'update'
update.downgrade ? 'downgrade' : 'upgrade'
} 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>
<p>This will download the desired firmware update from the <a href="https://github.com/zwave-js/firmware-updates/">Z-Wave JS firmware update service</a> and start an over-the-air (OTA) firmware update for the given node.</p>
`,
'warning',
update.downgrade ? 'error' : 'warning',
{
confirmText: 'Update',
confirmText: `${
update.downgrade ? 'Downgrade' : 'Upgrade'
}`,
cancelText: 'Cancel',
width: '500px',
},
Expand Down

0 comments on commit 8378946

Please sign in to comment.