mirror of
https://github.com/bitwarden/browser
synced 2026-02-06 19:53:59 +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.
25 lines
795 B
HTML
25 lines
795 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"
|
|
[admin]="admin"
|
|
[submitBtn]="submitBtn"
|
|
(onUploadStarted)="uploadStarted()"
|
|
(onUploadSuccess)="uploadSuccessful()"
|
|
(onUploadFailed)="uploadFailed()"
|
|
(onRemoveSuccess)="removalSuccessful()"
|
|
(onCloseButtonPress)="closeButtonPressed()"
|
|
></app-cipher-attachments>
|
|
</ng-container>
|
|
<ng-container bitDialogFooter>
|
|
<button bitButton type="submit" buttonType="primary" [attr.form]="attachmentFormId" #submitBtn>
|
|
{{ buttonText }}
|
|
</button>
|
|
</ng-container>
|
|
</bit-dialog>
|