From 07444bc7c2f182aa05a87396719b713c2a749bfb Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Fri, 4 Dec 2020 23:25:34 +0700 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=BF=D0=BE=D0=B4=D1=81=D0=BA=D0=B0=D0=B7=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=B2=20=D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=BE=D0=B1=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA?= =?UTF-8?q?=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Reader/ServerStorage/ServerStorage.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/client/components/Reader/ServerStorage/ServerStorage.vue b/client/components/Reader/ServerStorage/ServerStorage.vue index 095ad5f9..8280d451 100644 --- a/client/components/Reader/ServerStorage/ServerStorage.vue +++ b/client/components/Reader/ServerStorage/ServerStorage.vue @@ -216,8 +216,15 @@ class ServerStorage extends Vue { } error(message) { - if (this.showServerStorageMessages && !this.offlineModeActive) - this.$root.notify.error(message); + if (this.showServerStorageMessages && !this.offlineModeActive) { + this.errorMessageCounter = (this.errorMessageCounter ? this.errorMessageCounter + 1 : 1); + const hint = (this.errorMessageCounter < 2 ? '' : + '

Надоело это сообщение? Добавьте в настройках кнопку "Автономный режим" ' + + ' на панель инструментов и активируйте ее.
' + ); + + this.$root.notify.error(message + hint); + } } async loadSettings(force = false, doNotifySuccess = true) {