Disable auto-opening Account menu
This commit is contained in:
@@ -65,9 +65,12 @@ angular.module('app')
|
||||
}
|
||||
this.updateOfflineStatus();
|
||||
|
||||
if(this.offline && !passcodeManager.hasPasscode()) {
|
||||
this.showAccountMenu = true;
|
||||
}
|
||||
$rootScope.$on("initial-data-loaded", () => {
|
||||
// If the user has no notes and is offline, show Account menu
|
||||
if(this.offline && modelManager.noteCount() == 0) {
|
||||
this.showAccountMenu = true;
|
||||
}
|
||||
})
|
||||
|
||||
this.findErrors = function() {
|
||||
this.error = syncManager.syncStatus.error;
|
||||
|
||||
@@ -30,6 +30,10 @@ class ModelManager extends SFModelManager {
|
||||
this.components.length = 0;
|
||||
}
|
||||
|
||||
noteCount() {
|
||||
return this.notes.length;
|
||||
}
|
||||
|
||||
removeAllItemsFromMemory() {
|
||||
for(var item of this.items) {
|
||||
item.deleted = true;
|
||||
|
||||
Reference in New Issue
Block a user