diff --git a/apps/browser/src/autofill/popup/fido2/fido2.component.ts b/apps/browser/src/autofill/popup/fido2/fido2.component.ts index 6b7d9120195..1f304a5612c 100644 --- a/apps/browser/src/autofill/popup/fido2/fido2.component.ts +++ b/apps/browser/src/autofill/popup/fido2/fido2.component.ts @@ -191,7 +191,8 @@ export class Fido2Component implements OnInit, OnDestroy { this.accountService.activeAccount$.pipe(getUserId), ); this.ciphers = (await this.cipherService.getAllDecrypted(activeUserId)).filter( - (cipher) => cipher.type === CipherType.Login && !cipher.isDeleted, + (cipher) => + cipher.type === CipherType.Login && !cipher.isDeleted && !cipher.isArchived, ); this.displayedCiphers = this.ciphers.filter( diff --git a/apps/browser/src/vault/popup/components/vault-v2/vault-v2.component.ts b/apps/browser/src/vault/popup/components/vault-v2/vault-v2.component.ts index db853d45940..48cdda422e4 100644 --- a/apps/browser/src/vault/popup/components/vault-v2/vault-v2.component.ts +++ b/apps/browser/src/vault/popup/components/vault-v2/vault-v2.component.ts @@ -198,7 +198,7 @@ export class VaultV2Component implements OnInit, AfterViewInit, OnDestroy { this.cipherService .failedToDecryptCiphers$(this.activeUserId) .pipe( - map((ciphers) => (ciphers ? ciphers.filter((c) => !c.isDeleted) : [])), + map((ciphers) => (ciphers ? ciphers.filter((c) => !c.isDeleted || !c.isArchived) : [])), filter((ciphers) => ciphers.length > 0), take(1), takeUntilDestroyed(this.destroyRef), diff --git a/apps/desktop/src/locales/en/messages.json b/apps/desktop/src/locales/en/messages.json index 038cd5771ae..82b59aea912 100644 --- a/apps/desktop/src/locales/en/messages.json +++ b/apps/desktop/src/locales/en/messages.json @@ -1933,9 +1933,12 @@ "message": "Item permanently deleted" }, "archiveItem": { + "message": "Archive item" + }, + "archivedItem": { "message": "Item archived" }, - "unarchiveItem": { + "unarchivedItem": { "message": "Item unarchived" }, "restoredItem": { diff --git a/apps/desktop/src/vault/app/vault/vault.component.ts b/apps/desktop/src/vault/app/vault/vault.component.ts index dbd5cbee2e5..4ec719f5d26 100644 --- a/apps/desktop/src/vault/app/vault/vault.component.ts +++ b/apps/desktop/src/vault/app/vault/vault.component.ts @@ -293,9 +293,9 @@ export class VaultComponent implements OnInit, OnDestroy { if (params.deleted) { cipherStatus = "trash"; - } else if (params.archived){ + } else if (params.archived) { cipherStatus = "archive"; - } else if (params.favorites){ + } else if (params.favorites) { cipherStatus = "favorites"; } @@ -342,7 +342,7 @@ export class VaultComponent implements OnInit, OnDestroy { return; } - if (!cipher.isDeleted) { + if (!cipher.isDeleted || !cipher.isArchived) { menu.push({ label: this.i18nService.t("edit"), click: () => @@ -680,6 +680,7 @@ export class VaultComponent implements OnInit, OnDestroy { await this.vaultItemsComponent.reload( this.activeFilter.buildFilter(), vaultFilter.status === "trash", + vaultFilter.status === "archive", ); this.go(); } diff --git a/apps/desktop/src/vault/app/vault/view.component.html b/apps/desktop/src/vault/app/vault/view.component.html index 2f0e96325c9..72b2095f562 100644 --- a/apps/desktop/src/vault/app/vault/view.component.html +++ b/apps/desktop/src/vault/app/vault/view.component.html @@ -684,12 +684,7 @@