mirror of
https://github.com/bitwarden/browser
synced 2026-01-01 16:13:27 +00:00
combine edit into add/edit component
This commit is contained in:
@@ -11,12 +11,12 @@
|
||||
[cipherId]="cipherId"
|
||||
(onEditCipher)="editCipher($event)">
|
||||
</app-vault-view>
|
||||
<app-vault-edit id="details"
|
||||
*ngIf="cipherId && action === 'edit'"
|
||||
[cipherId]="cipherId">
|
||||
</app-vault-edit>
|
||||
<app-vault-add id="details"
|
||||
*ngIf="action === 'add'"
|
||||
[folderId]="null">
|
||||
</app-vault-add>
|
||||
<app-vault-add-edit id="details"
|
||||
*ngIf="action === 'add' || action === 'edit'"
|
||||
[folderId]="null"
|
||||
[cipherId]="action === 'edit' ? cipherId : null"
|
||||
(onSavedCipher)="savedCipher($event)"
|
||||
(onEditAttachments)="editCipherAttachments($event)"
|
||||
(onCancelled)="cancelledAddEdit($event)">
|
||||
</app-vault-add-edit>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user