1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-13 01:58:44 +02:00

no items in folder/collection

This commit is contained in:
Kyle Spearrin 2017-11-22 12:21:55 -05:00
parent 3563601382
commit d58b422bd0
2 changed files with 9 additions and 4 deletions

View File

@ -193,13 +193,13 @@
$scope.addCipher();
});
$scope.addCipher = function (folder, favorite) {
$scope.addCipher = function (grouping, favorite) {
var addModel = $uibModal.open({
animation: true,
templateUrl: 'app/vault/views/vaultAddCipher.html',
controller: 'vaultAddCipherController',
resolve: {
selectedFolder: function () { return folder; },
selectedFolder: function () { return grouping.folder ? grouping : null; },
checkedFavorite: function () { return favorite; }
}
});

View File

@ -191,8 +191,13 @@
</div>
<div class="box-body" ng-class="{'no-padding': groupingCiphers.length}">
<div ng-show="!groupingCiphers.length">
<p>No items in this collection/folder.</p>
<button type="button" ng-click="addCipher(grouping)" class="btn btn-default btn-flat">Add an Item</button>
<div ng-if="grouping.folder">
<p>No items in this folder.</p>
<button type="button" ng-click="addCipher(grouping)" class="btn btn-default btn-flat">Add an Item</button>
</div>
<div ng-if="!grouping.folder">
<p>No items in this collection.</p>
</div>
</div>
<div class="table-responsive" ng-show="groupingCiphers.length">
<table class="table table-striped table-hover table-vmiddle">