|
@@ -585,10 +585,19 @@ class Reader {
|
|
|
//сохранение в serverStorage
|
|
|
if (value) {
|
|
|
await utils.sleep(500);
|
|
|
+
|
|
|
+ let timer = setTimeout(() => {
|
|
|
+ if (!this.offlineModeActive)
|
|
|
+ this.$root.notify.error('Таймаут соединения');
|
|
|
+ }, 10000);
|
|
|
+
|
|
|
try {
|
|
|
await this.$refs.serverStorage.saveRecent(value);
|
|
|
} catch (e) {
|
|
|
- this.$root.notify.error(e.message);
|
|
|
+ if (!this.offlineModeActive)
|
|
|
+ this.$root.notify.error(e.message);
|
|
|
+ } finally {
|
|
|
+ clearTimeout(timer);
|
|
|
}
|
|
|
}
|
|
|
}
|