1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-25 20:53:22 +00:00

highlight active cipher and default folder for add

This commit is contained in:
Kyle Spearrin
2018-01-29 17:57:58 -05:00
parent 6d23338aa4
commit 7d2d4eafcb
5 changed files with 17 additions and 10 deletions

View File

@@ -7,6 +7,7 @@
(onCollectionClicked)="filterCollection($event.id)">
</app-vault-groupings>
<app-vault-ciphers id="items"
[activeCipherId]="cipherId"
(onCipherClicked)="viewCipher($event)"
(onAddCipher)="addCipher($event)">
</app-vault-ciphers>
@@ -17,7 +18,7 @@
</app-vault-view>
<app-vault-add-edit id="details"
*ngIf="action === 'add' || action === 'edit'"
[folderId]="null"
[folderId]="action === 'add' && folderId !== 'none' ? folderId : null"
[cipherId]="action === 'edit' ? cipherId : null"
(onSavedCipher)="savedCipher($event)"
(onDeletedCipher)="deletedCipher($event)"