[feature] Implement scope warning for exports

This commit is contained in:
addison 2022-02-28 11:31:39 -05:00
parent ea5f2a32ee
commit d758841642
3 changed files with 15 additions and 0 deletions

View File

@ -1872,5 +1872,17 @@
}, },
"sessionTimeout": { "sessionTimeout": {
"message": "Your session has timed out. Please go back and try logging in again." "message": "Your session has timed out. Please go back and try logging in again."
},
"exportingPersonalVaultTitle": {
"message": "Exporting Personal Vault"
},
"exportingPersonalVaultDescription": {
"message": "Only the personal vault items associated with $EMAIL$ will be exported. Organization vault items will not be included.",
"placeholders": {
"email": {
"content": "$1",
"example": "name@example.com"
}
}
} }
} }

View File

@ -59,6 +59,7 @@ import { BrowserModule } from "@angular/platform-browser";
import { BrowserAnimationsModule } from "@angular/platform-browser/animations"; import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
import { CalloutComponent } from "jslib-angular/components/callout.component"; import { CalloutComponent } from "jslib-angular/components/callout.component";
import { ExportScopeCalloutComponent } from "jslib-angular/components/export-scope-callout.component";
import { IconComponent } from "jslib-angular/components/icon.component"; import { IconComponent } from "jslib-angular/components/icon.component";
import { BitwardenToastModule } from "jslib-angular/components/toastr.component"; import { BitwardenToastModule } from "jslib-angular/components/toastr.component";
import { A11yTitleDirective } from "jslib-angular/directives/a11y-title.directive"; import { A11yTitleDirective } from "jslib-angular/directives/a11y-title.directive";
@ -221,6 +222,7 @@ registerLocaleData(localeZhTw, "zh-TW");
EnvironmentComponent, EnvironmentComponent,
ExcludedDomainsComponent, ExcludedDomainsComponent,
ExportComponent, ExportComponent,
ExportScopeCalloutComponent,
FallbackSrcDirective, FallbackSrcDirective,
FolderAddEditComponent, FolderAddEditComponent,
FoldersComponent, FoldersComponent,

View File

@ -19,6 +19,7 @@
<app-callout type="warning" title="{{ 'vaultExportDisabled' | i18n }}" *ngIf="disabledByPolicy"> <app-callout type="warning" title="{{ 'vaultExportDisabled' | i18n }}" *ngIf="disabledByPolicy">
{{ "personalVaultExportPolicyInEffect" | i18n }} {{ "personalVaultExportPolicyInEffect" | i18n }}
</app-callout> </app-callout>
<app-export-scope-callout *ngIf="!disabledByPolicy"></app-export-scope-callout>
<div class="box"> <div class="box">
<div class="box-content"> <div class="box-content">