mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-26 12:25:20 +01:00
no edit/del of "no folder"
This commit is contained in:
parent
39471d0421
commit
c3be8195fd
@ -243,6 +243,10 @@
|
||||
};
|
||||
|
||||
$scope.editFolder = function (folder) {
|
||||
if (!folder.id) {
|
||||
return;
|
||||
}
|
||||
|
||||
var editModel = $uibModal.open({
|
||||
animation: true,
|
||||
templateUrl: 'app/vault/views/vaultEditFolder.html',
|
||||
@ -276,6 +280,10 @@
|
||||
};
|
||||
|
||||
$scope.deleteFolder = function (folder) {
|
||||
if (!folder.id) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!confirm('Are you sure you want to delete this folder (' + folder.name + ')? ' +
|
||||
'Any items will be moved to "No Folder".')) {
|
||||
return;
|
||||
|
@ -50,7 +50,7 @@
|
||||
{{selectedFolder ? selectedFolder.name : selectedCollection ? selectedCollection.name : selectedTitle}}
|
||||
<small ng-pluralize count="filteredCiphers.length" when="{'1': '{} item', 'other': '{} items'}"></small>
|
||||
</h3>
|
||||
<div class="box-tools" ng-if="selectedFolder">
|
||||
<div class="box-tools" ng-if="selectedFolder && selectedFolder.id">
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-box-tool dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="fa fa-cog"></i> <span class="caret"></span>
|
||||
|
Loading…
Reference in New Issue
Block a user