From 015254ae40f6ca142b5dfc080c9a90713345eb01 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Sun, 17 Mar 2019 22:39:40 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=B5=D0=BB=D0=BA=D0=B0=D1=8F=20=D0=BF?= =?UTF-8?q?=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/Reader/ServerStorage/ServerStorage.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/components/Reader/ServerStorage/ServerStorage.vue b/client/components/Reader/ServerStorage/ServerStorage.vue index 331d8610..9fe1de2c 100644 --- a/client/components/Reader/ServerStorage/ServerStorage.vue +++ b/client/components/Reader/ServerStorage/ServerStorage.vue @@ -21,7 +21,7 @@ export default @Component({ this.serverStorageKeyChanged(); }, settings: function() { - this.saveSettings(); + this.debouncedSaveSettings(); }, profiles: function() { this.saveProfiles(); @@ -37,6 +37,10 @@ class ServerStorage extends Vue { this.prevServerStorageKey = null; this.$root.$on('generateNewServerStorageKey', () => {this.generateNewServerStorageKey()}); + this.debouncedSaveSettings = _.debounce(() => { + this.saveSettings(); + }, 500); + this.oldProfiles = {}; this.oldSettings = {}; }