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:
parent
fe2460bad8
commit
9a19acef22
@ -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;
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user