All files / app/component/kanban/kanban-column kanban-column.component.html

28.84% Statements 15/52
23.07% Branches 3/13
0% Functions 0/9
43.75% Lines 14/32

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 5518x                                                   1x 1x       1x 1x         9x   9x 18x   1x   9x     1x 18x 9x   18x      
@if (page) {
  @for (ref of page.content; track ref.origin + '@' + ref.url) {
    <app-kanban-card cdkDrag
                     [hideSwimLanes]="hideSwimLanes"
                     [cdkDragData]="ref"
                     [cdkDragStartDelay]="pressToUnlock ? 251 : 0"
                     [pressToUnlock]="pressToUnlock"
                     [ref]="ref"
                     [ext]="ext"
                     (copied)="copy($event)"></app-kanban-card>
  }
  @for (upload of adding; track upload.id) {
    <app-kanban-card [ref]="{ url: '', title: upload.name }"
                     [ext]="ext"
                     [progress]="upload.progress"></app-kanban-card>
  }
  @for (failedItem of failed; track failedItem.text) {
    <div class="failed-item">
      <div class="failed-content">
        <div class="failed-text">{{ failedItem.text }}</div>
        <div class="failed-error">{{ failedItem.error }}</div>
      </div>
      <div class="failed-actions">
        <button type="button"
                class="retry-btn"
                (click)="retry(failedItem)"
                i18n-title title="Retry creating this item"
                i18n>↻</button>
        <button type="button"
                class="dismiss-btn"
                (click)="dismissFailed(failedItem)"
                i18n-title title="Dismiss this failed item"
                i18n>&ndash;</button>
      </div>
    </div>
  }
} @else {
  <app-loading></app-loading>
}
<div class="spacer"></div>
@if (hasMore) {
  <a class="fake-link no-select load-more"
     (click)="loadMore()" i18n>load more @if (more) {<span class="more">({{ more }})</span>}</a>
}
<input type="text"
       enterkeyhint="send"
       i18n-placeholder
       placeholder="Add..."
       [value]="addText"
       (input)="addText = $any($event.target).value"
       (paste)="handlePaste($event)"
       [style.display]="addText ? 'block' : 'none'"
       (keydown)="$event.key === 'Enter' && add() || true"
       (blur)="add()">