From dd56c9bc8727617b9c7c8ecd464aeb1dac1830a2 Mon Sep 17 00:00:00 2001 From: Oscar Hinton Date: Tue, 27 Apr 2021 18:49:02 +0200 Subject: [PATCH] Add auto delete warning to trash page (#953) * Add warning to trash page --- src/app/organizations/vault/vault.component.html | 3 +++ src/app/organizations/vault/vault.component.ts | 9 ++++++++- src/app/vault/vault.component.html | 3 +++ src/app/vault/vault.component.ts | 4 ++++ src/locales/en/messages.json | 6 ++++++ 5 files changed, 24 insertions(+), 1 deletion(-) diff --git a/src/app/organizations/vault/vault.component.html b/src/app/organizations/vault/vault.component.html index 521f7e3650..23b396cd55 100644 --- a/src/app/organizations/vault/vault.component.html +++ b/src/app/organizations/vault/vault.component.html @@ -29,6 +29,9 @@ + + {{trashCleanupWarning}} + { this.organization = await this.userService.getOrganization(params.organizationId); this.groupingsComponent.organization = this.organization; diff --git a/src/app/vault/vault.component.html b/src/app/vault/vault.component.html index ec8e015ea1..8752d5e15e 100644 --- a/src/app/vault/vault.component.html +++ b/src/app/vault/vault.component.html @@ -28,6 +28,9 @@ + + {{trashCleanupWarning}} + { await this.syncService.fullSync(false); diff --git a/src/locales/en/messages.json b/src/locales/en/messages.json index 8fc079df47..064aee50eb 100644 --- a/src/locales/en/messages.json +++ b/src/locales/en/messages.json @@ -3875,5 +3875,11 @@ "example": "John Smith" } } + }, + "trashCleanupWarning": { + "message": "Ciphers that have been in Trash more than 30 days will be automatically deleted." + }, + "trashCleanupWarningSelfHosted": { + "message": "Ciphers that have been in Trash for a while will be automatically deleted." } }