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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user