1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-06 09:20:43 +01: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();
}); });
$scope.addCipher = function (folder, favorite) { $scope.addCipher = function (grouping, favorite) {
var addModel = $uibModal.open({ var addModel = $uibModal.open({
animation: true, animation: true,
templateUrl: 'app/vault/views/vaultAddCipher.html', templateUrl: 'app/vault/views/vaultAddCipher.html',
controller: 'vaultAddCipherController', controller: 'vaultAddCipherController',
resolve: { resolve: {
selectedFolder: function () { return folder; }, selectedFolder: function () { return grouping.folder ? grouping : null; },
checkedFavorite: function () { return favorite; } checkedFavorite: function () { return favorite; }
} }
}); });

View File

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