From d20ec144ff8725c923920926fe0ce35ee150ba13 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Sun, 17 Mar 2019 23:39:00 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B5=D0=B1=D0=BE=D0=BB=D1=8C=D1=88?= =?UTF-8?q?=D0=B0=D1=8F=20=D0=B4=D0=BE=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=BA?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Reader/ServerStorage/ServerStorage.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/client/components/Reader/ServerStorage/ServerStorage.vue b/client/components/Reader/ServerStorage/ServerStorage.vue index 9fe1de2c..807d11ee 100644 --- a/client/components/Reader/ServerStorage/ServerStorage.vue +++ b/client/components/Reader/ServerStorage/ServerStorage.vue @@ -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;