Navigation Menu

Skip to content

Commit

Permalink
fix(ui): schedule refresh message is backward
Browse files Browse the repository at this point in the history
Fixes #3093
  • Loading branch information
robertsLando committed May 22, 2023
1 parent f9c88dd commit 1342a69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/nodes-table/NodeScheduler.vue
Expand Up @@ -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'
Expand All @@ -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
Expand Down

0 comments on commit 1342a69

Please sign in to comment.