feat: remove account menu sync spinner
This commit is contained in:
@@ -68,7 +68,6 @@ type AccountMenuState = {
|
|||||||
errorReportingEnabled: boolean;
|
errorReportingEnabled: boolean;
|
||||||
syncInProgress: boolean;
|
syncInProgress: boolean;
|
||||||
syncError: string;
|
syncError: string;
|
||||||
syncPercentage: string;
|
|
||||||
showSessions: boolean;
|
showSessions: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -143,7 +142,6 @@ class AccountMenuCtrl extends PureViewCtrl<{}, AccountMenuState> {
|
|||||||
this.setState({
|
this.setState({
|
||||||
syncInProgress: sync.inProgress,
|
syncInProgress: sync.inProgress,
|
||||||
syncError: sync.errorMessage,
|
syncError: sync.errorMessage,
|
||||||
syncPercentage: sync.humanReadablePercentage,
|
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
this.removeBetaWarningListener = autorun(() => {
|
this.removeBetaWarningListener = autorun(() => {
|
||||||
@@ -636,7 +634,7 @@ class AccountMenuCtrl extends PureViewCtrl<{}, AccountMenuState> {
|
|||||||
} else {
|
} else {
|
||||||
storage.set(StorageKey.DisableErrorReporting, false);
|
storage.set(StorageKey.DisableErrorReporting, false);
|
||||||
}
|
}
|
||||||
if (!this.application.getSyncStatus().syncInProgress) {
|
if (!this.state.syncInProgress) {
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -150,16 +150,6 @@
|
|||||||
.sk-panel-column
|
.sk-panel-column
|
||||||
.sk-h1.sk-bold.wrap {{self.state.user.email}}
|
.sk-h1.sk-bold.wrap {{self.state.user.email}}
|
||||||
.sk-subtitle.subtle.normal {{self.state.server}}
|
.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
|
.sk-panel-row
|
||||||
a.sk-a.info.sk-panel-row.condensed(
|
a.sk-a.info.sk-panel-row.condensed(
|
||||||
ng-click="self.openPasswordWizard()"
|
ng-click="self.openPasswordWizard()"
|
||||||
|
|||||||
Reference in New Issue
Block a user