From 89735ac9b060559081d294d9535df7801f8e805d Mon Sep 17 00:00:00 2001 From: AlphaX-Projects <77661270+AlphaX-Projects@users.noreply.github.com> Date: Sun, 19 Nov 2023 17:18:12 +0100 Subject: [PATCH] Fix syncstatus --- .../friends-view/core-sync-status.js | 38 ++++++++++++++++--- 1 file changed, 33 insertions(+), 5 deletions(-) diff --git a/core/src/components/friends-view/core-sync-status.js b/core/src/components/friends-view/core-sync-status.js index 7fe7d3df..534f3a9c 100644 --- a/core/src/components/friends-view/core-sync-status.js +++ b/core/src/components/friends-view/core-sync-status.js @@ -93,6 +93,7 @@ class CoreSyncStatus extends connect(store)(LitElement) { }, 60000) } + async getCoreInfos() { const corInfo = store.getState().app.nodeConfig.knownNodes[store.getState().app.nodeConfig.node] const coreInfoUrl = corInfo.protocol + '://' + corInfo.domain + ':' + corInfo.port @@ -101,12 +102,11 @@ class CoreSyncStatus extends connect(store)(LitElement) { return response.json() }).then(data => { this.coreInfos = data - }).catch(err => { }) } renderSyncStatusIcon() { - if (this.nodeStatus.isSynchronizing === true) { + if (this.nodeStatus.isSynchronizing === true && this.nodeStatus.syncPercent === 99) { return html`