From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sun, 12 Jan 2025 06:42:24 +0000 (-0800) Subject: Fix: fix jittering when toggling workflows X-Git-Tag: v2.14.0~1^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c4d3a45c2e058133f35ed4059b50a35dd9b06ff;p=thirdparty%2Fpaperless-ngx.git Fix: fix jittering when toggling workflows --- diff --git a/src-ui/src/app/components/manage/workflows/workflows.component.html b/src-ui/src/app/components/manage/workflows/workflows.component.html index 085de71ea6..0fb63d09a3 100644 --- a/src-ui/src/app/components/manage/workflows/workflows.component.html +++ b/src-ui/src/app/components/manage/workflows/workflows.component.html @@ -22,7 +22,7 @@ - @if (loading) { + @if (loading && workflows.length === 0) {
  • Loading... @@ -36,7 +36,7 @@
    {{workflow.order}}
    - + diff --git a/src-ui/src/app/components/manage/workflows/workflows.component.ts b/src-ui/src/app/components/manage/workflows/workflows.component.ts index 8d6e0f0086..9c1bc1ad4a 100644 --- a/src-ui/src/app/components/manage/workflows/workflows.component.ts +++ b/src-ui/src/app/components/manage/workflows/workflows.component.ts @@ -147,7 +147,7 @@ export class WorkflowsComponent }) } - onWorkflowEnableToggled(workflow: Workflow) { + toggleWorkflowEnabled(workflow: Workflow) { this.workflowService.patch(workflow).subscribe({ next: () => { this.toastService.showInfo(