1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-25 17:13:24 +00:00

Changes attachment modal to remove choose file button and changes upload button to close button if the user doesn't have edit rights to the cipher.

This commit is contained in:
Jackson Engstrom
2026-01-16 10:01:21 -08:00
parent 6397b4225a
commit 456d012d52
6 changed files with 80 additions and 51 deletions

View File

@@ -925,6 +925,7 @@ export class VaultComponent<C extends CipherViewLike> implements OnInit, OnDestr
const dialogRef = AttachmentsV2Component.open(this.dialogService, {
cipherId: cipher.id as CipherId,
organizationId: cipher.organizationId as OrganizationId,
canEditCipher: cipher.edit,
});
const result: AttachmentDialogCloseResult = await lastValueFrom(dialogRef.closed);