Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Commit

Permalink
no edit/del of "no folder"
Browse files Browse the repository at this point in the history
  • Loading branch information
kspearrin committed Mar 20, 2018
1 parent 39471d0 commit c3be819
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/app/vault/vaultController.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,10 @@
};

$scope.editFolder = function (folder) {
if (!folder.id) {
return;
}

var editModel = $uibModal.open({
animation: true,
templateUrl: 'app/vault/views/vaultEditFolder.html',
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/app/vault/views/vault.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ <h3 class="box-title">
{{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>
Expand Down

0 comments on commit c3be819

Please sign in to comment.