mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 13:53:34 +00:00
Implements a new functionality for simple configurable dialogs that allows you to set an acceptAction which triggers a pending state. To use this set acceptAction to an async method, and it will be executed on accept prior to closing the dialog.
27 lines
725 B
HTML
27 lines
725 B
HTML
<form [formGroup]="formGroup" [bitSubmit]="accept">
|
|
<bit-simple-dialog>
|
|
<i bitDialogIcon class="bwi tw-text-3xl" [class]="iconClasses" aria-hidden="true"></i>
|
|
|
|
<span bitDialogTitle>{{ title }}</span>
|
|
|
|
<div bitDialogContent>{{ content }}</div>
|
|
|
|
<ng-container bitDialogFooter>
|
|
<button type="submit" bitButton bitFormButton buttonType="primary">
|
|
{{ acceptButtonText }}
|
|
</button>
|
|
|
|
<button
|
|
*ngIf="showCancelButton"
|
|
type="button"
|
|
bitButton
|
|
bitFormButton
|
|
buttonType="secondary"
|
|
(click)="dialogRef.close(SimpleDialogCloseType.CANCEL)"
|
|
>
|
|
{{ cancelButtonText }}
|
|
</button>
|
|
</ng-container>
|
|
</bit-simple-dialog>
|
|
</form>
|