From 8378946ee7e6699007d4815369c4450cc8b198ee Mon Sep 17 00:00:00 2001 From: Daniel Lando Date: Tue, 14 Nov 2023 16:29:14 +0100 Subject: [PATCH] fix(ui): inconsistency in ota popup warning /cc @AlCalzone --- src/components/nodes-table/OTAUpdates.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/nodes-table/OTAUpdates.vue b/src/components/nodes-table/OTAUpdates.vue index e453b9e92ff..0100e06fb20 100644 --- a/src/components/nodes-table/OTAUpdates.vue +++ b/src/components/nodes-table/OTAUpdates.vue @@ -198,9 +198,9 @@ export default { async updateFirmware(update) { if ( await this.$listeners.showConfirm( - 'OTA Update', + `OTA ${update.downgrade ? 'Downgrade' : 'Upgrade'}`, `

Are you sure you want to ${ - update.downgrade ? 'downgrade' : 'update' + update.downgrade ? 'downgrade' : 'upgrade' } node to v${update.version}?

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

@@ -208,9 +208,11 @@ export default {

This will download the desired firmware update from the Z-Wave JS firmware update service and start an over-the-air (OTA) firmware update for the given node.

`, - 'warning', + update.downgrade ? 'error' : 'warning', { - confirmText: 'Update', + confirmText: `${ + update.downgrade ? 'Downgrade' : 'Upgrade' + }`, cancelText: 'Cancel', width: '500px', },