diff --git a/app/assets/javascripts/directives/views/accountMenu.ts b/app/assets/javascripts/directives/views/accountMenu.ts index 21ed1a884..8f1e0b757 100644 --- a/app/assets/javascripts/directives/views/accountMenu.ts +++ b/app/assets/javascripts/directives/views/accountMenu.ts @@ -68,7 +68,6 @@ type AccountMenuState = { errorReportingEnabled: boolean; syncInProgress: boolean; syncError: string; - syncPercentage: string; showSessions: boolean; } @@ -143,7 +142,6 @@ class AccountMenuCtrl extends PureViewCtrl<{}, AccountMenuState> { this.setState({ syncInProgress: sync.inProgress, syncError: sync.errorMessage, - syncPercentage: sync.humanReadablePercentage, }); }) this.removeBetaWarningListener = autorun(() => { @@ -636,7 +634,7 @@ class AccountMenuCtrl extends PureViewCtrl<{}, AccountMenuState> { } else { storage.set(StorageKey.DisableErrorReporting, false); } - if (!this.application.getSyncStatus().syncInProgress) { + if (!this.state.syncInProgress) { window.location.reload(); } } diff --git a/app/assets/templates/directives/account-menu.pug b/app/assets/templates/directives/account-menu.pug index 6c3572309..d891f114a 100644 --- a/app/assets/templates/directives/account-menu.pug +++ b/app/assets/templates/directives/account-menu.pug @@ -150,16 +150,6 @@ .sk-panel-column .sk-h1.sk-bold.wrap {{self.state.user.email}} .sk-subtitle.subtle.normal {{self.state.server}} - .sk-horizontal-group( - delay='1000', - delay-hide='true', - show='self.state.syncInProgress' - ) - .sk-spinner.small.info - .sk-sublabel - | Syncing - span(ng-if='self.state.syncPercentage') - | ({{self.state.syncPercentage}}) .sk-panel-row a.sk-a.info.sk-panel-row.condensed( ng-click="self.openPasswordWizard()"