This commit is contained in:
Mo Bitar
2018-07-02 17:28:31 -05:00
parent 82b1586fd7
commit c3d94c334a
7 changed files with 82 additions and 66 deletions

View File

@@ -26,7 +26,7 @@ angular.module('app')
syncManager, storageManager, passcodeManager, componentManager, singletonManager, nativeExtManager) {
authManager.checkForSecurityUpdate().then((available) => {
this.securityUpdateAvailable = available;
this.securityUpdateAvailable = available;
})
$rootScope.$on("security-update-status-changed", () => {

View File

@@ -89,10 +89,10 @@ angular.module('app')
});
syncManager.loadLocalItems().then(() => {
$scope.allTag.didLoad = true;
$scope.$apply();
$rootScope.$broadcast("initial-data-loaded");
$timeout(() => {
$scope.allTag.didLoad = true;
$rootScope.$broadcast("initial-data-loaded");
})
syncManager.sync();
// refresh every 30s
@@ -225,14 +225,14 @@ angular.module('app')
$scope.didShowErrorAlert = true;
alert("There was an error saving your note. Please try again.");
}
if(callback) {
callback(false);
}
$timeout(() => {
callback && callback(false);
})
} else {
note.hasChanges = false;
if(callback) {
callback(true);
}
$timeout(() => {
callback && callback(true);
});
}
})
}
@@ -273,7 +273,9 @@ angular.module('app')
$scope.safeApply();
}, 50);
} else {
$rootScope.notifyDelete();
$timeout(() => {
$rootScope.notifyDelete();
});
}
});
}

View File

@@ -8,7 +8,7 @@ class LockScreen {
};
}
controller($scope, passcodeManager, authManager, syncManager) {
controller($scope, passcodeManager, authManager, syncManager, storageManager) {
'ngInject';
$scope.formData = {};