|
@@ -17,6 +17,9 @@ const maxSetTries = 5;
|
|
|
|
|
|
export default @Component({
|
|
|
watch: {
|
|
|
+ serverSyncEnabled: function() {
|
|
|
+ this.serverSyncEnabledChanged();
|
|
|
+ },
|
|
|
serverStorageKey: function() {
|
|
|
this.serverStorageKeyChanged();
|
|
|
},
|
|
@@ -55,6 +58,13 @@ class ServerStorage extends Vue {
|
|
|
await this.currentProfileChanged();
|
|
|
}
|
|
|
|
|
|
+ async serverSyncEnabledChanged() {
|
|
|
+ if (this.serverSyncEnabled) {
|
|
|
+ this.prevServerStorageKey = null;
|
|
|
+ await this.serverStorageKeyChanged();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
async serverStorageKeyChanged() {
|
|
|
if (this.prevServerStorageKey != this.serverStorageKey) {
|
|
|
this.prevServerStorageKey = this.serverStorageKey;
|