1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 00:03:56 +00:00

Add auto delete warning to trash page (#953)

* Add warning to trash page
This commit is contained in:
Oscar Hinton
2021-04-27 18:49:02 +02:00
committed by GitHub
parent 19f92e74f5
commit dd56c9bc87
5 changed files with 24 additions and 1 deletions

View File

@@ -65,6 +65,7 @@ export class VaultComponent implements OnInit, OnDestroy {
showUpdateKey = false;
showPremiumCallout = false;
deleted: boolean = false;
trashCleanupWarning: string = null;
modal: ModalComponent = null;
@@ -79,6 +80,9 @@ export class VaultComponent implements OnInit, OnDestroy {
async ngOnInit() {
this.showVerifyEmail = !(await this.tokenService.getEmailVerified());
this.showBrowserOutdated = window.navigator.userAgent.indexOf('MSIE') !== -1;
this.trashCleanupWarning = this.i18nService.t(
this.platformUtilsService.isSelfHost() ? 'trashCleanupWarningSelfHosted' : 'trashCleanupWarning'
);
const queryParamsSub = this.route.queryParams.subscribe(async params => {
await this.syncService.fullSync(false);