From 4ff40ba14f6637bcd8522c0ff571e33367037f45 Mon Sep 17 00:00:00 2001 From: zadam Date: Sat, 15 May 2021 13:44:12 +0200 Subject: [PATCH] fix sync status in-progress --- src/public/app/widgets/sync_status.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/public/app/widgets/sync_status.js b/src/public/app/widgets/sync_status.js index 0aaa28bc5..901620a05 100644 --- a/src/public/app/widgets/sync_status.js +++ b/src/public/app/widgets/sync_status.js @@ -3,7 +3,6 @@ import toastService from "../services/toast.js"; import ws from "../services/ws.js"; import options from "../services/options.js"; import syncService from "../services/sync.js"; -import appContext from "../services/app_context.js"; const TPL = `
@@ -108,7 +107,7 @@ export default class SyncStatusWidget extends BasicWidget { showIcon(className) { if (!options.get('syncServerHost')) { - this.$widget.hide(); + this.toggleInt(false); return; } @@ -148,8 +147,8 @@ export default class SyncStatusWidget extends BasicWidget { this.allChangesPushed = lastSyncedPush === ws.getMaxKnownEntityChangeSyncId(); } - if (this.syncState === 'unknown') { - this.showIcon('unknown'); + if (['unknown', 'in-progress'].includes(this.syncState)) { + this.showIcon(this.syncState); } else { this.showIcon(this.syncState + '-' + (this.allChangesPushed ? 'no-changes' : 'with-changes')); }