Небольшая доработка
This commit is contained in:
@@ -17,6 +17,9 @@ const maxSetTries = 5;
|
|||||||
|
|
||||||
export default @Component({
|
export default @Component({
|
||||||
watch: {
|
watch: {
|
||||||
|
serverSyncEnabled: function() {
|
||||||
|
this.serverSyncEnabledChanged();
|
||||||
|
},
|
||||||
serverStorageKey: function() {
|
serverStorageKey: function() {
|
||||||
this.serverStorageKeyChanged();
|
this.serverStorageKeyChanged();
|
||||||
},
|
},
|
||||||
@@ -55,6 +58,13 @@ class ServerStorage extends Vue {
|
|||||||
await this.currentProfileChanged();
|
await this.currentProfileChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async serverSyncEnabledChanged() {
|
||||||
|
if (this.serverSyncEnabled) {
|
||||||
|
this.prevServerStorageKey = null;
|
||||||
|
await this.serverStorageKeyChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
async serverStorageKeyChanged() {
|
async serverStorageKeyChanged() {
|
||||||
if (this.prevServerStorageKey != this.serverStorageKey) {
|
if (this.prevServerStorageKey != this.serverStorageKey) {
|
||||||
this.prevServerStorageKey = this.serverStorageKey;
|
this.prevServerStorageKey = this.serverStorageKey;
|
||||||
|
|||||||
Reference in New Issue
Block a user