Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Merge branch 'feature-frontend-task-queue' of github.com:paperless-ngx/paperless-ngx into feature-frontend-task-queue

Michael Shamoon011164bc32e6
diff --cc src-ui/src/app/components/manage/tasks/tasks.component.html
index 45fc02666,c26581dab..c9f64041c
--- a/src-ui/src/app/components/manage/tasks/tasks.component.html
+++ b/src-ui/src/app/components/manage/tasks/tasks.component.html
@@@ -27,9 -15,11 +15,10 @@@
<table class="table table-striped align-middle border shadow-sm">
<thead>
<tr>
- <!-- [currentSortField]="sortField" [currentSortReverse]="sortReverse" (sort)="onSort($event)" -->
- <th>
+ <th scope="col">
<div class="form-check">
- <input type="checkbox" class="form-check-input" id="all-tasks" [disabled]="currentTasks.length == 0" (click)="toggleAll($event); $event.stopPropagation();">
+ <!-- [checked]="list.isSelected(d)" (click)="toggleSelected(d, $event); $event.stopPropagation();" -->
+ <input type="checkbox" class="form-check-input" id="all-tasks">
<label class="form-check-label" for="all-tasks"></label>
</div>
</th>
@@@ -41,24 -30,15 +30,25 @@@
</thead>
<tbody>
<tr *ngFor="let task of tasks">
- <td>
+ <th>
<div class="form-check">
- <input type="checkbox" class="form-check-input" id="task{{task.id}}" [checked]="selectedTasks.has(task.id)" (click)="toggleSelected(task, $event); $event.stopPropagation();">
+ <!-- [checked]="list.isSelected(d)" (click)="toggleSelected(d, $event); $event.stopPropagation();" -->
+ <input type="checkbox" class="form-check-input" id="task{{task.id}}">
<label class="form-check-label" for="task{{task.id}}"></label>
</div>
+ </th>
+ <td>{{ task.name }}</td>
+ <td>{{ task.created | customDate:'short' }}</td>
+ <td>
+ <div class="text-primary" *ngIf="task.result.length > 50" [ngbPopover]="resultPopover" popoverClass="shadow font-monospace small" triggers="mouseenter:mouseleave:click">
+ <svg fill="currentColor" class="me-2" width="1.2em" height="1.2em" style="vertical-align: text-top;" viewBox="0 0 16 16">
+ <use xlink:href="assets/bootstrap-icons.svg#info-circle" />
+ </svg>
+ <span class="small d-none d-md-inline-block font-monospace text-muted">{{ task.result | slice:0:50 }}&hellip;</span>
+ </div>
+ <span *ngIf="task.result.length <= 50" class="small d-none d-md-inline-block font-monospace">{{ task.result | slice:0:50 }}</span>
+ <ng-template #resultPopover><div class="small">{{ task.result }}</div></ng-template>
</td>
- <td scope="row">{{ task.name }}</td>
- <td scope="row">{{ task.created | customDate:'medium' }}</td>
<td scope="row">
<button class="btn btn-sm btn-outline-secondary" (click)="acknowledgeTask(task)">
<svg class="sidebaricon" fill="currentColor">