From 20b814b33bbcbed595d86ae334808952e4601ab3 Mon Sep 17 00:00:00 2001 From: SmithThe4th Date: Wed, 19 Mar 2025 16:22:00 -0400 Subject: [PATCH] [PM-19367] Hide owner field in edit dialog (#13909) * Updated font list * Added empty archive SVG * Updated filters to include archive type * Added condition for archive type * Switched to use old icon * Put archive filter and no archive item behind the feature flag * Only apply archive filter when the flag is enabled * Removed empty archive svg * Removed empty archive svg * Fixed cipher domain tests * Fixed cipher service test * Added icon to storybook * simplified filter logic * used the new template syntax * fixed suggestion * Hide ownership from edit dialog * Hide ownership from edit dialog * Hide ownership from edit dialog --- .../item-details/item-details-section.component.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/vault/src/cipher-form/components/item-details/item-details-section.component.ts b/libs/vault/src/cipher-form/components/item-details/item-details-section.component.ts index dcbc4e8c92f..f92490dad9e 100644 --- a/libs/vault/src/cipher-form/components/item-details/item-details-section.component.ts +++ b/libs/vault/src/cipher-form/components/item-details/item-details-section.component.ts @@ -171,6 +171,11 @@ export class ItemDetailsSectionComponent implements OnInit { } get showOwnership() { + // Don't show ownership field for archived ciphers + if (this.originalCipherView?.isArchived) { + return false; + } + // Show ownership field when editing with available orgs const isEditingWithOrgs = this.organizations.length > 0 && this.config.mode === "edit";