Footer state
This commit is contained in:
@@ -111,9 +111,13 @@ class FooterCtrl extends PureCtrl {
|
|||||||
/** @override */
|
/** @override */
|
||||||
onAppEvent(eventName) {
|
onAppEvent(eventName) {
|
||||||
if (eventName === ApplicationEvents.EnteredOutOfSync) {
|
if (eventName === ApplicationEvents.EnteredOutOfSync) {
|
||||||
this.outOfSync = true;
|
this.setState({
|
||||||
|
outOfSync: true
|
||||||
|
});
|
||||||
} else if (eventName === ApplicationEvents.ExitedOutOfSync) {
|
} else if (eventName === ApplicationEvents.ExitedOutOfSync) {
|
||||||
this.outOfSync = false;
|
this.setState({
|
||||||
|
outOfSync: false
|
||||||
|
});
|
||||||
} else if (eventName === ApplicationEvents.CompletedSync) {
|
} else if (eventName === ApplicationEvents.CompletedSync) {
|
||||||
if (this.offline && this.application.getNoteCount() === 0) {
|
if (this.offline && this.application.getNoteCount() === 0) {
|
||||||
this.showAccountMenu = true;
|
this.showAccountMenu = true;
|
||||||
|
|||||||
@@ -52,9 +52,7 @@ class AccountMenuCtrl extends PureCtrl {
|
|||||||
user: this.application.getUser(),
|
user: this.application.getUser(),
|
||||||
formData: {
|
formData: {
|
||||||
mergeLocal: true,
|
mergeLocal: true,
|
||||||
ephemeral: false,
|
ephemeral: false
|
||||||
email: "b@bitar.io",
|
|
||||||
user_password: "password"
|
|
||||||
},
|
},
|
||||||
mutable: {}
|
mutable: {}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -55,9 +55,9 @@
|
|||||||
| Last refreshed {{ctrl.lastSyncDate}}
|
| Last refreshed {{ctrl.lastSyncDate}}
|
||||||
.sk-app-bar-item(
|
.sk-app-bar-item(
|
||||||
ng-click='ctrl.toggleSyncResolutionMenu()',
|
ng-click='ctrl.toggleSyncResolutionMenu()',
|
||||||
ng-if='(ctrl.outOfSync && !ctrl.isRefreshing) || ctrl.showSyncResolution'
|
ng-if='(ctrl.state.outOfSync && !ctrl.isRefreshing) || ctrl.showSyncResolution'
|
||||||
)
|
)
|
||||||
.sk-label.warning(ng-if='ctrl.outOfSync') Potentially Out of Sync
|
.sk-label.warning(ng-if='ctrl.state.outOfSync') Potentially Out of Sync
|
||||||
sync-resolution-menu(
|
sync-resolution-menu(
|
||||||
close-function='ctrl.toggleSyncResolutionMenu',
|
close-function='ctrl.toggleSyncResolutionMenu',
|
||||||
ng-click='$event.stopPropagation();',
|
ng-click='$event.stopPropagation();',
|
||||||
|
|||||||
48
dist/javascripts/app.js
vendored
48
dist/javascripts/app.js
vendored
File diff suppressed because one or more lines are too long
2
dist/javascripts/app.js.map
vendored
2
dist/javascripts/app.js.map
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user