1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-25 12:15:18 +01:00

add none folder from service layer

This commit is contained in:
Kyle Spearrin 2016-09-21 00:43:29 -04:00
parent fe2460bad8
commit 9a19acef22
4 changed files with 7 additions and 13 deletions

View File

@ -25,10 +25,7 @@
popupUtils.initListSectionItemListeners();
$q.when(folderService.getAllDecrypted()).then(function (folders) {
$scope.folders = folders.concat([{
id: null,
name: '(none)'
}]);
$scope.folders = folders;
});
$scope.savePromise = null;

View File

@ -43,10 +43,7 @@
$q.all(promises).then(function () {
$scope.loaded = true;
$rootScope.vaultFolders = decFolders.concat([{
id: null,
name: '(none)'
}]);
$rootScope.vaultFolders = decFolders;
$rootScope.vaultSites = decSites;
if (!delayLoad) {
setScrollY();

View File

@ -23,10 +23,7 @@ angular
}
$q.when(folderService.getAllDecrypted()).then(function (folders) {
$scope.folders = folders.concat([{
id: null,
name: '(none)'
}]);
$scope.folders = folders;
});
popupUtils.initListSectionItemListeners();

View File

@ -70,7 +70,10 @@ function initFolderService() {
}
var promises = [];
var decFolders = [];
var decFolders = [{
id: null,
name: '(none)'
}];
self.getAll(function (folders) {
for (var i = 0; i < folders.length; i++) {
promises.push(folders[i].decrypt().then(function (folder) {