mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
* Wire organization ID into AttachmentsV2Component for org-based ciphers * Enhance AttachmentsV2Component to accept organization ID for improved handling of org-based ciphers * Integrate organization ID into VaultComponent for AttachmentsV2Component to enhance org-based cipher handling * Add unit tests for CipherAttachmentsComponent to validate attachment saving behavior for admins - Introduced mocks for ApiService and OrganizationService in the test setup. - Updated tests to check `saveAttachmentWithServer` calls with the correct parameters, including an `isAdmin` flag for admin API usage. * Fix unit tests for AttachmentsV2Component by adding mocks for ApiService and OrganizationService * Fix AttachmentsV2Component tests
21 lines
646 B
HTML
21 lines
646 B
HTML
<bit-dialog dialogSize="default" background="alt">
|
|
<span bitDialogTitle>
|
|
{{ "attachments" | i18n }}
|
|
</span>
|
|
<ng-container bitDialogContent>
|
|
<app-cipher-attachments
|
|
*ngIf="cipherId"
|
|
[cipherId]="cipherId"
|
|
[organizationId]="organizationId"
|
|
[submitBtn]="submitBtn"
|
|
(onUploadSuccess)="uploadSuccessful()"
|
|
(onRemoveSuccess)="removalSuccessful()"
|
|
></app-cipher-attachments>
|
|
</ng-container>
|
|
<ng-container bitDialogFooter>
|
|
<button bitButton type="submit" buttonType="primary" [attr.form]="attachmentFormId" #submitBtn>
|
|
{{ "upload" | i18n }}
|
|
</button>
|
|
</ng-container>
|
|
</bit-dialog>
|