1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

rename bit-dialog-close

This commit is contained in:
William Martin
2023-08-30 21:26:14 -04:00
parent f59628bbf1
commit b655da747c
5 changed files with 8 additions and 14 deletions

View File

@@ -4,7 +4,7 @@
{{ "awaitDesktopDesc" | i18n }}
</span>
<ng-container bitDialogFooter>
<button bitButton type="button" buttonType="secondary" bitDialogClose bit-dialog-close="true">
<button bitButton type="button" buttonType="secondary" [bitDialogClose]="true">
{{ "close" | i18n }}
</button>
</ng-container>

View File

@@ -8,10 +8,10 @@
<strong>{{ params.fingerprint }}</strong>
</span>
<ng-container bitDialogFooter>
<button bitButton type="submit" buttonType="primary" bitDialogClose bit-dialog-close="true">
<button bitButton type="submit" buttonType="primary" [bitDialogClose]="true">
{{ "approve" | i18n }}
</button>
<button bitButton type="submit" buttonType="secondary" bitDialogClose bit-dialog-close="false">
<button bitButton type="submit" buttonType="secondary" [bitDialogClose]="false">
{{ "cancel" | i18n }}
</button>
</ng-container>

View File

@@ -8,10 +8,10 @@
{{ "verifyNativeMessagingConnectionWarning" | i18n }}
</span>
<ng-container bitDialogFooter>
<button bitButton type="button" buttonType="primary" bitDialogClose bit-dialog-close="true">
<button bitButton type="button" buttonType="primary" [bitDialogClose]="true">
{{ "yes" | i18n }}
</button>
<button bitButton type="button" buttonType="secondary" bitDialogClose bit-dialog-close="false">
<button bitButton type="button" buttonType="secondary" [bitDialogClose]="false">
{{ "no" | i18n }}
</button>
</ng-container>

View File

@@ -69,13 +69,7 @@
<button bitButton buttonType="primary" bitFormButton type="submit">
{{ "save" | i18n }}
</button>
<button
bitButton
buttonType="secondary"
type="button"
bitDialogClose
[bit-dialog-close]="ResultType.Canceled"
>
<button bitButton buttonType="secondary" type="button" [bitDialogClose]="ResultType.Canceled">
{{ "cancel" | i18n }}
</button>
<button

View File

@@ -5,9 +5,9 @@ import { Directive, HostListener, Input, Optional } from "@angular/core";
selector: "[bitDialogClose]",
})
export class DialogCloseDirective {
@Input("bit-dialog-close") dialogResult: any;
@Input("bitDialogClose") dialogResult: any;
constructor(@Optional() public dialogRef: DialogRef<any>) {}
constructor(@Optional() public dialogRef: DialogRef) {}
@HostListener("click") close(): void {
this.dialogRef.close(this.dialogResult);