mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 18:23:31 +00:00
[PM-14952] - remove Edit button and show restore button when viewing item in trash (#12847)
* add restore function to vault item dialog * update comment * revert removing of delete button * use canDeleteCipher$ * put canRestore in class property * set showRestore after canDeleteCipher is set
This commit is contained in:
@@ -36,7 +36,10 @@
|
||||
</vault-cipher-form>
|
||||
</div>
|
||||
<ng-container bitDialogFooter>
|
||||
<ng-container *ngIf="showCipherView">
|
||||
<button *ngIf="showRestore" [bitAction]="restore" bitButton buttonType="primary" type="button">
|
||||
{{ "restore" | i18n }}
|
||||
</button>
|
||||
<ng-container *ngIf="showCipherView && !showRestore">
|
||||
<button
|
||||
bitButton
|
||||
[bitAction]="switchToEdit"
|
||||
@@ -53,7 +56,7 @@
|
||||
form="cipherForm"
|
||||
buttonType="primary"
|
||||
#submitBtn
|
||||
[hidden]="showCipherView"
|
||||
[hidden]="showCipherView || showRestore"
|
||||
>
|
||||
{{ "save" | i18n }}
|
||||
</button>
|
||||
@@ -62,7 +65,7 @@
|
||||
type="button"
|
||||
buttonType="secondary"
|
||||
(click)="cancel()"
|
||||
*ngIf="!showCipherView"
|
||||
*ngIf="!showCipherView && !showRestore"
|
||||
>
|
||||
{{ "cancel" | i18n }}
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user