feat: remove account menu sync spinner
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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()"
|
||||
|
||||
Reference in New Issue
Block a user