From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Mon, 15 Jan 2024 22:15:30 +0000 (-0800) Subject: Enhancement / QoL: show selected tasks count (#5379) X-Git-Tag: v2.4.0~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad07791bac0427fc41376fd280f92b3f11d49a50;p=thirdparty%2Fpaperless-ngx.git Enhancement / QoL: show selected tasks count (#5379) --- diff --git a/src-ui/messages.xlf b/src-ui/messages.xlf index b04f86ebc3..2b22142ee4 100644 --- a/src-ui/messages.xlf +++ b/src-ui/messages.xlf @@ -1641,35 +1641,42 @@ {VAR_PLURAL, plural, =1 {One task} other { total tasks}} src/app/components/admin/tasks/tasks.component.html - 113 + 114 + + + +  ( selected) + + src/app/components/admin/tasks/tasks.component.html + 116 Failed src/app/components/admin/tasks/tasks.component.html - 123,125 + 128,130 Complete src/app/components/admin/tasks/tasks.component.html - 131,133 + 136,138 Started src/app/components/admin/tasks/tasks.component.html - 139,141 + 144,146 Queued src/app/components/admin/tasks/tasks.component.html - 147,149 + 152,154 diff --git a/src-ui/src/app/components/admin/tasks/tasks.component.html b/src-ui/src/app/components/admin/tasks/tasks.component.html index 6531f146a7..21895b75de 100644 --- a/src-ui/src/app/components/admin/tasks/tasks.component.html +++ b/src-ui/src/app/components/admin/tasks/tasks.component.html @@ -3,153 +3,158 @@ - -
- - -
- - +  Clear selection + + +
+ + +
+ + - @if (!tasksService.completedFileTasks && tasksService.loading) { -
-
Loading...
- } +@if (!tasksService.completedFileTasks && tasksService.loading) { +
+
Loading...
+} - - - - - - - - @if (activeTab !== 'started' && activeTab !== 'queued') { - - } - - - - - - @for (task of tasks | slice: (page-1) * pageSize : page * pageSize; track task) { - - + } + + + + + + + } + +
-
- - -
-
NameCreatedResultsInfoActions
-
- - + + + + + + + + @if (activeTab !== 'started' && activeTab !== 'queued') { + + } + + + + + + @for (task of tasks | slice: (page-1) * pageSize : page * pageSize; track task) { + + + + + @if (activeTab !== 'started' && activeTab !== 'queued') { + - - - @if (activeTab !== 'started' && activeTab !== 'queued') { - } - - - - - - + @if (task.result?.length <= 50) { + {{ task.result }} } - -
+
+ + +
+
NameCreatedResultsInfoActions
+
+ + +
+
{{ task.task_file_name }}{{ task.date_created | customDate:'short' }} + @if (task.result?.length > 50) { +
+ {{ task.result | slice:0:50 }}…
-
{{ task.task_file_name }}{{ task.date_created | customDate:'short' }} - @if (task.result?.length > 50) { -
- {{ task.result | slice:0:50 }}… -
- } - @if (task.result?.length <= 50) { - {{ task.result }} - } - -
{{ task.result | slice:0:300 }}@if (task.result.length > 300) {
-                      …
-                    }
- @if (task.result?.length > 300) { -
(click for full output) - } -
-
- - -
- - - @if (task.related_document) { - - } - -
-
-
{{ task.result }}
-
+ +
{{ task.result | slice:0:300 }}@if (task.result.length > 300) {
+                  …
+                }
+ @if (task.result?.length > 300) { +
(click for full output) + } +
+
+ + +
+ + + @if (task.related_document) { + + } + +
+
+
{{ task.result }}
+
-
- @if (tasks.length > 0) { -
{tasks.length, plural, =1 {One {{this.activeTabLocalized}} task} other {{{tasks.length || 0}} total {{this.activeTabLocalized}} tasks}}
- } - @if (tasks.length > pageSize) { - - } -
-
+
+ @if (tasks.length > 0) { +
+ {tasks.length, plural, =1 {One {{this.activeTabLocalized}} task} other {{{tasks.length || 0}} total {{this.activeTabLocalized}} tasks}} + @if (selectedTasks.size > 0) { +  ({{selectedTasks.size}} selected) + } +
+ } + @if (tasks.length > pageSize) { + + } +
+ - -
+ +