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 }}
|
{{ "awaitDesktopDesc" | i18n }}
|
||||||
</span>
|
</span>
|
||||||
<ng-container bitDialogFooter>
|
<ng-container bitDialogFooter>
|
||||||
<button bitButton type="button" buttonType="secondary" bitDialogClose bit-dialog-close="true">
|
<button bitButton type="button" buttonType="secondary" [bitDialogClose]="true">
|
||||||
{{ "close" | i18n }}
|
{{ "close" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|||||||
@@ -8,10 +8,10 @@
|
|||||||
<strong>{{ params.fingerprint }}</strong>
|
<strong>{{ params.fingerprint }}</strong>
|
||||||
</span>
|
</span>
|
||||||
<ng-container bitDialogFooter>
|
<ng-container bitDialogFooter>
|
||||||
<button bitButton type="submit" buttonType="primary" bitDialogClose bit-dialog-close="true">
|
<button bitButton type="submit" buttonType="primary" [bitDialogClose]="true">
|
||||||
{{ "approve" | i18n }}
|
{{ "approve" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button bitButton type="submit" buttonType="secondary" bitDialogClose bit-dialog-close="false">
|
<button bitButton type="submit" buttonType="secondary" [bitDialogClose]="false">
|
||||||
{{ "cancel" | i18n }}
|
{{ "cancel" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|||||||
@@ -8,10 +8,10 @@
|
|||||||
{{ "verifyNativeMessagingConnectionWarning" | i18n }}
|
{{ "verifyNativeMessagingConnectionWarning" | i18n }}
|
||||||
</span>
|
</span>
|
||||||
<ng-container bitDialogFooter>
|
<ng-container bitDialogFooter>
|
||||||
<button bitButton type="button" buttonType="primary" bitDialogClose bit-dialog-close="true">
|
<button bitButton type="button" buttonType="primary" [bitDialogClose]="true">
|
||||||
{{ "yes" | i18n }}
|
{{ "yes" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button bitButton type="button" buttonType="secondary" bitDialogClose bit-dialog-close="false">
|
<button bitButton type="button" buttonType="secondary" [bitDialogClose]="false">
|
||||||
{{ "no" | i18n }}
|
{{ "no" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|||||||
@@ -69,13 +69,7 @@
|
|||||||
<button bitButton buttonType="primary" bitFormButton type="submit">
|
<button bitButton buttonType="primary" bitFormButton type="submit">
|
||||||
{{ "save" | i18n }}
|
{{ "save" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button bitButton buttonType="secondary" type="button" [bitDialogClose]="ResultType.Canceled">
|
||||||
bitButton
|
|
||||||
buttonType="secondary"
|
|
||||||
type="button"
|
|
||||||
bitDialogClose
|
|
||||||
[bit-dialog-close]="ResultType.Canceled"
|
|
||||||
>
|
|
||||||
{{ "cancel" | i18n }}
|
{{ "cancel" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ import { Directive, HostListener, Input, Optional } from "@angular/core";
|
|||||||
selector: "[bitDialogClose]",
|
selector: "[bitDialogClose]",
|
||||||
})
|
})
|
||||||
export class DialogCloseDirective {
|
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 {
|
@HostListener("click") close(): void {
|
||||||
this.dialogRef.close(this.dialogResult);
|
this.dialogRef.close(this.dialogResult);
|
||||||
|
|||||||
Reference in New Issue
Block a user