Refresh property value if failed to set.
This commit is contained in:
parent
154f063ab3
commit
823456dbc2
1 changed files with 4 additions and 1 deletions
|
|
@ -108,7 +108,10 @@ export default {
|
|||
await this.modalNotify(`Set ${this.label} to ${this.value}.`);
|
||||
}
|
||||
} catch (error) {
|
||||
this.modalError(error); // Let mixin handle error
|
||||
// Use mixin to display error
|
||||
this.modalError(error);
|
||||
// Re-read property to try to update to server value
|
||||
this.readProperty();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue