1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-04 17:43:39 +00:00

routing for vault

This commit is contained in:
Kyle Spearrin
2018-01-25 11:21:08 -05:00
parent fcdbed93a3
commit 54c117bdc6
2 changed files with 36 additions and 8 deletions

View File

@@ -7,16 +7,16 @@
(onAddCipher)="addCipher($event)">
</app-vault-ciphers>
<app-vault-view id="details"
*ngIf="cipherId && details === 'view'"
*ngIf="cipherId && action === 'view'"
[cipherId]="cipherId"
(onEditCipher)="editCipher($event)">
</app-vault-view>
<app-vault-edit id="details"
*ngIf="cipherId && details === 'edit'"
*ngIf="cipherId && action === 'edit'"
[cipherId]="cipherId">
</app-vault-edit>
<app-vault-add id="details"
*ngIf="details === 'add'"
*ngIf="action === 'add'"
[folderId]="null">
</app-vault-add>
</div>