-
-
-
-
-
-
-
-
-
-
collections: CollectionView[] | null = null;
config: CipherFormConfig | null = null;
readonly userHasPremium = signal(false);
+ protected itemTypesIcon = ItemTypes;
/** Tracks the disabled status of the edit cipher form */
protected formDisabled: boolean = false;
@@ -221,6 +225,12 @@ export class VaultV2Component
: this.i18nService.t("save");
});
+ protected hasArchivedCiphers$ = this.userId$.pipe(
+ switchMap((userId) =>
+ this.cipherArchiveService.archivedCiphers$(userId).pipe(map((ciphers) => ciphers.length > 0)),
+ ),
+ );
+
private componentIsDestroyed$ = new Subject();
private allOrganizations: Organization[] = [];
private allCollections: CollectionView[] = [];
-
+ }
+ @if (action !== "add" && action !== "edit" && action !== "view" && action !== "clone") {
+
+ }
+
+
-
+
+ @if (activeFilter.status === "archive" && !(hasArchivedCiphers$ | async)) {
+
+
+ } @else {
+
+ }
+
+ {{ "noItemsInArchive" | i18n }}
+
+ + {{ "noItemsInArchiveDesc" | i18n }} +
+