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:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user