Back to Openproject

Attachments.Component

frontend/src/app/shared/components/attachments/attachments.component.html

17.3.1654 B
Original Source

@if ((attachments$ | async).length > 0) { 0 }" [attachments]="attachments$ | async" [collectionKey]="collectionKey" [showTimestamp]="showTimestamp" [showDelete]="allowRemoval" (attachmentRemoved)="attachmentRemoved.emit()" /> } @if (allowUploading && resource.canAddAttachments) { 0, 'op-file-section--drop-box_dragging-over': draggingOverDropZone, 'op-file-section--drop-box_float': (attachments$ | async).length }" type="button" (click)="triggerFileInput()" (dragover)="onDragOver($event)" (dragleave)="onDragLeave($event)" (drop)="onDropFiles($event)" > @if ((attachments$ | async).length === 0) { } @else { } @if (!externalUploadButton) { } }