From d758841642c39d0dc9f57ea363a1a70c5ac30340 Mon Sep 17 00:00:00 2001 From: addison Date: Mon, 28 Feb 2022 11:31:39 -0500 Subject: [PATCH] [feature] Implement scope warning for exports --- src/_locales/en/messages.json | 12 ++++++++++++ src/popup/app.module.ts | 2 ++ src/popup/settings/export.component.html | 1 + 3 files changed, 15 insertions(+) diff --git a/src/_locales/en/messages.json b/src/_locales/en/messages.json index 6a6c21226f..276b045a9b 100644 --- a/src/_locales/en/messages.json +++ b/src/_locales/en/messages.json @@ -1872,5 +1872,17 @@ }, "sessionTimeout": { "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" + } + } } } diff --git a/src/popup/app.module.ts b/src/popup/app.module.ts index 030e165656..ab9c4914e0 100644 --- a/src/popup/app.module.ts +++ b/src/popup/app.module.ts @@ -59,6 +59,7 @@ import { BrowserModule } from "@angular/platform-browser"; import { BrowserAnimationsModule } from "@angular/platform-browser/animations"; 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 { BitwardenToastModule } from "jslib-angular/components/toastr.component"; import { A11yTitleDirective } from "jslib-angular/directives/a11y-title.directive"; @@ -221,6 +222,7 @@ registerLocaleData(localeZhTw, "zh-TW"); EnvironmentComponent, ExcludedDomainsComponent, ExportComponent, + ExportScopeCalloutComponent, FallbackSrcDirective, FolderAddEditComponent, FoldersComponent, diff --git a/src/popup/settings/export.component.html b/src/popup/settings/export.component.html index 88c7f65d8c..4b19958ebf 100644 --- a/src/popup/settings/export.component.html +++ b/src/popup/settings/export.component.html @@ -19,6 +19,7 @@ {{ "personalVaultExportPolicyInEffect" | i18n }} +