mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 10:13:31 +00:00
update desktop and browser swal references to use CL
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<bit-simple-dialog>
|
||||
<span bitDialogTitle>
|
||||
{{ "verifyBrowserTitle" | i18n }}
|
||||
</span>
|
||||
<span bitDialogContent>
|
||||
{{ "verifyBrowserDesc" | i18n }}
|
||||
<br /><br />
|
||||
<strong>{{ params.fingerprint }}</strong>
|
||||
</span>
|
||||
<ng-container bitDialogFooter>
|
||||
<button bitButton type="submit" buttonType="primary" bitDialogClose bit-dialog-close="true">
|
||||
{{ "approve" | i18n }}
|
||||
</button>
|
||||
<button bitButton type="submit" buttonType="secondary" bitDialogClose bit-dialog-close="false">
|
||||
{{ "cancel" | i18n }}
|
||||
</button>
|
||||
</ng-container>
|
||||
</bit-simple-dialog>
|
||||
@@ -0,0 +1,25 @@
|
||||
import { DIALOG_DATA } from "@angular/cdk/dialog";
|
||||
import { Component, Inject } from "@angular/core";
|
||||
|
||||
import { JslibModule } from "@bitwarden/angular/jslib.module";
|
||||
import { ButtonModule, DialogModule, DialogService } from "@bitwarden/components";
|
||||
|
||||
export type BrowserSyncVerificationDialogParams = {
|
||||
fingerprint: string;
|
||||
};
|
||||
|
||||
@Component({
|
||||
templateUrl: "browser-sync-verification-dialog.component.html",
|
||||
standalone: true,
|
||||
imports: [JslibModule, ButtonModule, DialogModule],
|
||||
})
|
||||
export class BrowserSyncVerificationDialogComponent {
|
||||
constructor(@Inject(DIALOG_DATA) protected params: BrowserSyncVerificationDialogParams) {}
|
||||
|
||||
static open(dialogService: DialogService, data: BrowserSyncVerificationDialogParams) {
|
||||
return dialogService.open(BrowserSyncVerificationDialogComponent, {
|
||||
data,
|
||||
disableClose: true,
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
<bit-simple-dialog>
|
||||
<span bitDialogTitle>
|
||||
{{ "verifyNativeMessagingConnectionTitle" | i18n : data.applicationName }}:
|
||||
</span>
|
||||
<span bitDialogContent>
|
||||
{{ "verifyNativeMessagingConnectionDesc" | i18n }}
|
||||
<br />
|
||||
{{ "verifyNativeMessagingConnectionWarning" | i18n }}
|
||||
</span>
|
||||
<ng-container bitDialogFooter>
|
||||
<button bitButton type="button" buttonType="primary" bitDialogClose bit-dialog-close="true">
|
||||
{{ "yes" | i18n }}
|
||||
</button>
|
||||
<button bitButton type="button" buttonType="secondary" bitDialogClose bit-dialog-close="false">
|
||||
{{ "no" | i18n }}
|
||||
</button>
|
||||
</ng-container>
|
||||
</bit-simple-dialog>
|
||||
@@ -0,0 +1,24 @@
|
||||
import { DIALOG_DATA } from "@angular/cdk/dialog";
|
||||
import { Component, Inject } from "@angular/core";
|
||||
|
||||
import { JslibModule } from "@bitwarden/angular/jslib.module";
|
||||
import { ButtonModule, DialogModule, DialogService } from "@bitwarden/components";
|
||||
|
||||
export type VerifyNativeMessagingDialogData = {
|
||||
applicationName: string;
|
||||
};
|
||||
|
||||
@Component({
|
||||
templateUrl: "verify-native-messaging-dialog.component.html",
|
||||
standalone: true,
|
||||
imports: [JslibModule, ButtonModule, DialogModule],
|
||||
})
|
||||
export class VerifyNativeMessagingDialogComponent {
|
||||
constructor(@Inject(DIALOG_DATA) protected data: VerifyNativeMessagingDialogData) {}
|
||||
|
||||
static open(dialogService: DialogService, data: VerifyNativeMessagingDialogData) {
|
||||
return dialogService.open<boolean>(VerifyNativeMessagingDialogComponent, {
|
||||
data,
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user