1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-01-06 18:57:56 +01:00

apply code review

This commit is contained in:
William Martin 2023-09-01 11:16:09 -04:00
parent 3bdb52c613
commit 5c99e278b6
No known key found for this signature in database
GPG Key ID: A65ACD91BADF316B
4 changed files with 9 additions and 18 deletions

View File

@ -2,12 +2,7 @@ import { DIALOG_DATA } from "@angular/cdk/dialog";
import { Component, Inject } from "@angular/core";
import { JslibModule } from "@bitwarden/angular/jslib.module";
import {
AsyncActionsModule,
ButtonModule,
DialogModule,
DialogService,
} from "@bitwarden/components";
import { ButtonModule, DialogModule, DialogService } from "@bitwarden/components";
export type DesktopSyncVerificationDialogParams = {
fingerprint: string;
@ -16,7 +11,7 @@ export type DesktopSyncVerificationDialogParams = {
@Component({
templateUrl: "desktop-sync-verification-dialog.component.html",
standalone: true,
imports: [JslibModule, ButtonModule, DialogModule, AsyncActionsModule],
imports: [JslibModule, ButtonModule, DialogModule],
})
export class DesktopSyncVerificationDialogComponent {
constructor(@Inject(DIALOG_DATA) protected params: DesktopSyncVerificationDialogParams) {}

View File

@ -1,5 +1,5 @@
<bit-simple-dialog>
<span bitDialogTitle> {{ "awaitDesktop" | i18n }}: </span>
<span bitDialogTitle>{{ "awaitDesktop" | i18n }}</span>
<span bitDialogContent>
{{ "awaitDesktopDesc" | i18n }}
</span>

View File

@ -1,17 +1,12 @@
import { Component } from "@angular/core";
import { JslibModule } from "@bitwarden/angular/jslib.module";
import {
AsyncActionsModule,
ButtonModule,
DialogModule,
DialogService,
} from "@bitwarden/components";
import { ButtonModule, DialogModule, DialogService } from "@bitwarden/components";
@Component({
templateUrl: "await-desktop-dialog.component.html",
standalone: true,
imports: [JslibModule, ButtonModule, DialogModule, AsyncActionsModule],
imports: [JslibModule, ButtonModule, DialogModule],
})
export class AwaitDesktopDialogComponent {
static open(dialogService: DialogService) {

View File

@ -3,9 +3,10 @@
{{ "verifyBrowserTitle" | i18n }}
</span>
<span bitDialogContent>
{{ "verifyBrowserDesc" | i18n }}
<br /><br />
<strong>{{ params.fingerprint }}</strong>
<p>{{ "verifyBrowserDesc" | i18n }}</p>
<p>
<strong>{{ params.fingerprint }}</strong>
</p>
</span>
<ng-container bitDialogFooter>
<button bitButton type="submit" buttonType="primary" [bitDialogClose]="true">