mirror of
https://github.com/bitwarden/browser
synced 2026-02-21 20:04:02 +00:00
* Prevent users from cancelling an in-flight upload, and attempt to block them from closing the window. * Add comment for deprecated event.returnValue
24 lines
750 B
HTML
24 lines
750 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()"
|
|
></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>
|