From 9ecf2686e5702a5b88db872637a01e7404cf97d3 Mon Sep 17 00:00:00 2001 From: Nick Krantz <125900171+nick-livefront@users.noreply.github.com> Date: Fri, 22 Aug 2025 12:38:35 -0500 Subject: [PATCH] [PM-22987] Hide download for corrupt attachments (#16023) * spelling fix * hide download button for corrupt attachments * add missing translations for desktop --- apps/desktop/src/locales/en/messages.json | 6 ++++++ .../delete-attachment/delete-attachment.component.ts | 2 +- .../download-attachment.component.html | 1 + .../download-attachment.component.spec.ts | 8 ++++++++ .../download-attachment/download-attachment.component.ts | 5 +++++ 5 files changed, 21 insertions(+), 1 deletion(-) diff --git a/apps/desktop/src/locales/en/messages.json b/apps/desktop/src/locales/en/messages.json index 83c021341b8..300cf779cc3 100644 --- a/apps/desktop/src/locales/en/messages.json +++ b/apps/desktop/src/locales/en/messages.json @@ -702,6 +702,12 @@ "attachmentSaved": { "message": "Attachment saved" }, + "addAttachment": { + "message": "Add attachment" + }, + "maxFileSizeSansPunctuation": { + "message": "Maximum file size is 500 MB" + }, "file": { "message": "File" }, diff --git a/libs/vault/src/cipher-form/components/attachments/delete-attachment/delete-attachment.component.ts b/libs/vault/src/cipher-form/components/attachments/delete-attachment/delete-attachment.component.ts index be6f10c01de..1552ef9f30e 100644 --- a/libs/vault/src/cipher-form/components/attachments/delete-attachment/delete-attachment.component.ts +++ b/libs/vault/src/cipher-form/components/attachments/delete-attachment/delete-attachment.component.ts @@ -29,7 +29,7 @@ export class DeleteAttachmentComponent { /** The attachment that is can be deleted */ @Input({ required: true }) attachment!: AttachmentView; - /** Whether the attachemnt is being accessed from the admin console */ + /** Whether the attachment is being accessed from the admin console */ @Input() admin: boolean = false; /** Emits when the attachment is successfully deleted */ diff --git a/libs/vault/src/components/download-attachment/download-attachment.component.html b/libs/vault/src/components/download-attachment/download-attachment.component.html index 47ee3c4761c..c2c2f1d4ebd 100644 --- a/libs/vault/src/components/download-attachment/download-attachment.component.html +++ b/libs/vault/src/components/download-attachment/download-attachment.component.html @@ -1,4 +1,5 @@