From 1342a698a5290e70f8c405051d5727ad95b193a7 Mon Sep 17 00:00:00 2001 From: Daniel Lando Date: Mon, 22 May 2023 09:45:51 +0200 Subject: [PATCH] fix(ui): schedule refresh message is backward Fixes #3093 --- src/components/nodes-table/NodeScheduler.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/nodes-table/NodeScheduler.vue b/src/components/nodes-table/NodeScheduler.vue index a841125313..7c6e8269e6 100644 --- a/src/components/nodes-table/NodeScheduler.vue +++ b/src/components/nodes-table/NodeScheduler.vue @@ -313,7 +313,7 @@ export default { } }, async refresh() { - const fromCache = await this.app.confirm( + const shouldQuery = await this.app.confirm( 'Refresh schedules', 'Do you want to query the schedules from the device or to get them from the cache? Querying from the device may take a while but will always return the latest schedules stored on it.', 'info' @@ -322,7 +322,7 @@ export default { this.loading = true const response = await this.app.apiRequest('getSchedules', [ this.node.id, - { mode: this.mode, fromCache }, + { mode: this.mode, fromCache: !shouldQuery }, ]) this.loading = false