mirror of
https://github.com/bitwarden/browser
synced 2026-01-27 06:43:41 +00:00
update other footer btns for better tooltip consistency
This commit is contained in:
@@ -11,34 +11,33 @@
|
||||
>
|
||||
{{ submitButtonText() }}
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
class="primary"
|
||||
(click)="edit()"
|
||||
appA11yTitle="{{ 'edit' | i18n }}"
|
||||
*ngIf="!cipher.isDeleted && action === 'view'"
|
||||
>
|
||||
<i class="bwi bwi-pencil bwi-fw bwi-lg" aria-hidden="true"></i>
|
||||
</button>
|
||||
<button
|
||||
*ngIf="action === 'edit' || action === 'clone' || action === 'add'"
|
||||
type="button"
|
||||
(click)="cancel()"
|
||||
>
|
||||
{{ "cancel" | i18n }}
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
class="primary"
|
||||
(click)="restore()"
|
||||
appA11yTitle="{{ 'restore' | i18n }}"
|
||||
*ngIf="cipher.isDeleted && cipher.permissions.restore"
|
||||
>
|
||||
<i class="bwi bwi-undo bwi-fw bwi-lg" aria-hidden="true"></i>
|
||||
</button>
|
||||
@if (!cipher.isDeleted && action === "view") {
|
||||
<button type="button" class="primary" (click)="edit()" appA11yTitle="{{ 'edit' | i18n }}">
|
||||
<i class="bwi bwi-pencil bwi-fw bwi-lg" aria-hidden="true" style="pointer-events: none">
|
||||
</i>
|
||||
</button>
|
||||
}
|
||||
|
||||
@if (action === "edit" || action === "clone" || action === "add") {
|
||||
<button type="button" (click)="cancel()">
|
||||
{{ "cancel" | i18n }}
|
||||
</button>
|
||||
}
|
||||
|
||||
@if (cipher.isDeleted && cipher.permissions.restore) {
|
||||
<button
|
||||
type="button"
|
||||
class="primary"
|
||||
(click)="restore()"
|
||||
appA11yTitle="{{ 'restore' | i18n }}"
|
||||
>
|
||||
<i class="bwi bwi-undo bwi-fw bwi-lg" aria-hidden="true" style="pointer-events: none"></i>
|
||||
</button>
|
||||
}
|
||||
|
||||
@if (showCloneOption) {
|
||||
<button type="button" class="primary" (click)="clone()" appA11yTitle="{{ 'clone' | i18n }}">
|
||||
<i class="bwi bwi-files bwi-fw bwi-lg" aria-hidden="true"></i>
|
||||
<i class="bwi bwi-files bwi-fw bwi-lg" aria-hidden="true" style="pointer-events: none"></i>
|
||||
</button>
|
||||
}
|
||||
</ng-container>
|
||||
|
||||
Reference in New Issue
Block a user