mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +00:00
[PM-6967] Replace app-callouts with bit-callouts on desktop (#8415)
* Enable usage of the bit-callout within desktop Adding this should be temporary, with the vision being: All components are standalone and they'd depend/import the CalloutModule themselves if they need it * Replace vaultTimeoutPolicy callout in settings * Replace OwnershipPolicy callout in add-edit cipher * Replace vaultExportDisabled policy callout in export * Replace generator policy callout in generator * Replace policy callouts in add/edit Sends --------- Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
8fd76eaf9c
commit
7a42b4ebc6
@@ -30,7 +30,7 @@
|
|||||||
</button>
|
</button>
|
||||||
</h2>
|
</h2>
|
||||||
<ng-container *ngIf="showSecurity">
|
<ng-container *ngIf="showSecurity">
|
||||||
<app-callout type="info" *ngIf="vaultTimeoutPolicyCallout | async as policy">
|
<bit-callout type="info" *ngIf="vaultTimeoutPolicyCallout | async as policy">
|
||||||
<span *ngIf="policy.timeout && policy.action">
|
<span *ngIf="policy.timeout && policy.action">
|
||||||
{{
|
{{
|
||||||
"vaultTimeoutPolicyWithActionInEffect"
|
"vaultTimeoutPolicyWithActionInEffect"
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
<span *ngIf="!policy.timeout && policy.action">
|
<span *ngIf="!policy.timeout && policy.action">
|
||||||
{{ "vaultTimeoutActionPolicyInEffect" | i18n: (policy.action | i18n) }}
|
{{ "vaultTimeoutActionPolicyInEffect" | i18n: (policy.action | i18n) }}
|
||||||
</span>
|
</span>
|
||||||
</app-callout>
|
</bit-callout>
|
||||||
<app-vault-timeout-input
|
<app-vault-timeout-input
|
||||||
[vaultTimeoutOptions]="vaultTimeoutOptions"
|
[vaultTimeoutOptions]="vaultTimeoutOptions"
|
||||||
[formControl]="form.controls.vaultTimeout"
|
[formControl]="form.controls.vaultTimeout"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { NgModule } from "@angular/core";
|
|||||||
|
|
||||||
import { ColorPasswordCountPipe } from "@bitwarden/angular/pipes/color-password-count.pipe";
|
import { ColorPasswordCountPipe } from "@bitwarden/angular/pipes/color-password-count.pipe";
|
||||||
import { ColorPasswordPipe } from "@bitwarden/angular/pipes/color-password.pipe";
|
import { ColorPasswordPipe } from "@bitwarden/angular/pipes/color-password.pipe";
|
||||||
import { DialogModule } from "@bitwarden/components";
|
import { DialogModule, CalloutModule } from "@bitwarden/components";
|
||||||
import { ExportScopeCalloutComponent } from "@bitwarden/vault-export-ui";
|
import { ExportScopeCalloutComponent } from "@bitwarden/vault-export-ui";
|
||||||
|
|
||||||
import { AccessibilityCookieComponent } from "../auth/accessibility-cookie.component";
|
import { AccessibilityCookieComponent } from "../auth/accessibility-cookie.component";
|
||||||
@@ -60,6 +60,7 @@ import { SendComponent } from "./tools/send/send.component";
|
|||||||
VaultFilterModule,
|
VaultFilterModule,
|
||||||
LoginModule,
|
LoginModule,
|
||||||
DialogModule,
|
DialogModule,
|
||||||
|
CalloutModule,
|
||||||
DeleteAccountComponent,
|
DeleteAccountComponent,
|
||||||
UserVerificationComponent,
|
UserVerificationComponent,
|
||||||
ExportScopeCalloutComponent,
|
ExportScopeCalloutComponent,
|
||||||
|
|||||||
@@ -2,13 +2,13 @@
|
|||||||
<div class="modal-dialog" role="document">
|
<div class="modal-dialog" role="document">
|
||||||
<form class="modal-content" #form (ngSubmit)="submit()" [formGroup]="exportForm">
|
<form class="modal-content" #form (ngSubmit)="submit()" [formGroup]="exportForm">
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<app-callout
|
<bit-callout
|
||||||
type="warning"
|
type="warning"
|
||||||
title="{{ 'vaultExportDisabled' | i18n }}"
|
title="{{ 'vaultExportDisabled' | i18n }}"
|
||||||
*ngIf="disabledByPolicy"
|
*ngIf="disabledByPolicy"
|
||||||
>
|
>
|
||||||
{{ "personalVaultExportPolicyInEffect" | i18n }}
|
{{ "personalVaultExportPolicyInEffect" | i18n }}
|
||||||
</app-callout>
|
</bit-callout>
|
||||||
<tools-export-scope-callout *ngIf="!disabledByPolicy"></tools-export-scope-callout>
|
<tools-export-scope-callout *ngIf="!disabledByPolicy"></tools-export-scope-callout>
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<h1 class="box-header" id="exportTitle">
|
<h1 class="box-header" id="exportTitle">
|
||||||
|
|||||||
@@ -5,12 +5,12 @@
|
|||||||
<h1 class="modal-title" id="generatorTitle">
|
<h1 class="modal-title" id="generatorTitle">
|
||||||
{{ "generator" | i18n }}
|
{{ "generator" | i18n }}
|
||||||
</h1>
|
</h1>
|
||||||
<app-callout
|
<bit-callout
|
||||||
type="info"
|
type="info"
|
||||||
*ngIf="enforcedPasswordPolicyOptions?.inEffect() && type === 'password'"
|
*ngIf="enforcedPasswordPolicyOptions?.inEffect() && type === 'password'"
|
||||||
>
|
>
|
||||||
{{ "passwordGeneratorPolicyInEffect" | i18n }}
|
{{ "passwordGeneratorPolicyInEffect" | i18n }}
|
||||||
</app-callout>
|
</bit-callout>
|
||||||
<div class="generated-block" *ngIf="type === 'password'">
|
<div class="generated-block" *ngIf="type === 'password'">
|
||||||
<div
|
<div
|
||||||
class="generated-wrapper"
|
class="generated-wrapper"
|
||||||
|
|||||||
@@ -2,12 +2,12 @@
|
|||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="inner-content" *ngIf="send">
|
<div class="inner-content" *ngIf="send">
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<app-callout *ngIf="disableSend">
|
<bit-callout *ngIf="disableSend">
|
||||||
<span>{{ "sendDisabledWarning" | i18n }}</span>
|
<span>{{ "sendDisabledWarning" | i18n }}</span>
|
||||||
</app-callout>
|
</bit-callout>
|
||||||
<app-callout type="info" *ngIf="disableHideEmail && !disableSend">
|
<bit-callout type="info" *ngIf="disableHideEmail && !disableSend">
|
||||||
{{ "sendOptionsPolicyInEffect" | i18n }}
|
{{ "sendOptionsPolicyInEffect" | i18n }}
|
||||||
</app-callout>
|
</bit-callout>
|
||||||
</div>
|
</div>
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<h2 class="box-header">
|
<h2 class="box-header">
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="inner-content" *ngIf="cipher">
|
<div class="inner-content" *ngIf="cipher">
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<app-callout type="info" *ngIf="allowOwnershipOptions() && !allowPersonal">
|
<bit-callout type="info" *ngIf="allowOwnershipOptions() && !allowPersonal">
|
||||||
{{ "personalOwnershipPolicyInEffect" | i18n }}
|
{{ "personalOwnershipPolicyInEffect" | i18n }}
|
||||||
</app-callout>
|
</bit-callout>
|
||||||
<h2 class="box-header">
|
<h2 class="box-header">
|
||||||
{{ title }}
|
{{ title }}
|
||||||
</h2>
|
</h2>
|
||||||
|
|||||||
Reference in New Issue
Block a user