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

list folders

This commit is contained in:
Kyle Spearrin 2016-09-21 17:24:19 -04:00
parent ef4b97b336
commit db80727e1e
2 changed files with 12 additions and 3 deletions

View File

@ -1,6 +1,15 @@
angular
.module('bit.settings')
.controller('settingsFoldersController', function ($scope) {
.controller('settingsFoldersController', function ($scope, folderService, $q) {
$scope.loaded = false;
load();
function load() {
var foldersPromise = $q.when(folderService.getAllDecrypted());
foldersPromise.then(function (folders) {
$scope.loaded = true;
$scope.folders = folders;
});
}
});

View File

@ -30,7 +30,7 @@
Manage
</div>
<div class="list-section-items">
<a class="list-section-item" href="">
<a class="list-section-item" ui-sref="folders({animation: 'in-slide-left'})">
Folders
<i class="fa fa-chevron-right fa-lg"></i>
</a>