1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 23:03:32 +00:00

[SM-478] Resolve introduced eslint errors for button type (#4612)

This commit is contained in:
Oscar Hinton
2023-02-14 18:13:53 +01:00
committed by GitHub
parent bc60a34e50
commit 5dc1775cfc
16 changed files with 74 additions and 42 deletions

View File

@@ -1,5 +1,3 @@
<!-- Please remove this disable statement when editing this file! -->
<!-- eslint-disable @angular-eslint/template/button-has-type -->
<bit-simple-dialog>
<i bit-dialog-icon class="bwi tw-text-3xl" [class]="iconClasses" aria-hidden="true"></i>
@@ -8,12 +6,18 @@
<div bitDialogContent>{{ content }}</div>
<div bitDialogFooter class="tw-flex tw-flex-row tw-gap-2">
<button bitButton buttonType="primary" (click)="dialogRef.close(SimpleDialogCloseType.ACCEPT)">
<button
type="button"
bitButton
buttonType="primary"
(click)="dialogRef.close(SimpleDialogCloseType.ACCEPT)"
>
{{ acceptButtonText }}
</button>
<button
*ngIf="showCancelButton"
type="button"
bitButton
buttonType="secondary"
(click)="dialogRef.close(SimpleDialogCloseType.CANCEL)"