From faed7683be6fd1ee5c574e13935c8aab5bb71089 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Tue, 22 Aug 2023 22:11:53 -0700 Subject: [PATCH] Frontend better handle slow backend requests --- .../date-dropdown.component.html | 2 +- .../date-dropdown/date-dropdown.component.ts | 3 + ...permissions-filter-dropdown.component.html | 2 +- .../saved-view-widget.component.ts | 14 +++-- .../document-list/document-list.component.ts | 2 +- .../manage/logs/logs.component.html | 9 ++- .../components/manage/logs/logs.component.ts | 60 +++++++++++++------ .../management-list.component.html | 8 ++- .../management-list.component.ts | 49 +++++++++------ .../manage/tasks/tasks.component.ts | 5 +- .../document-list-view.service.spec.ts | 10 ++++ .../services/document-list-view.service.ts | 10 +++- src-ui/src/app/services/tasks.service.ts | 15 +++-- 13 files changed, 133 insertions(+), 56 deletions(-) diff --git a/src-ui/src/app/components/common/date-dropdown/date-dropdown.component.html b/src-ui/src/app/components/common/date-dropdown/date-dropdown.component.html index ad790821e..4f9410bee 100644 --- a/src-ui/src/app/components/common/date-dropdown/date-dropdown.component.html +++ b/src-ui/src/app/components/common/date-dropdown/date-dropdown.component.html @@ -1,5 +1,5 @@
- diff --git a/src-ui/src/app/components/common/date-dropdown/date-dropdown.component.ts b/src-ui/src/app/components/common/date-dropdown/date-dropdown.component.ts index b1493a7d3..d8d482033 100644 --- a/src-ui/src/app/components/common/date-dropdown/date-dropdown.component.ts +++ b/src-ui/src/app/components/common/date-dropdown/date-dropdown.component.ts @@ -85,6 +85,9 @@ export class DateDropdownComponent implements OnInit, OnDestroy { @Output() datesSet = new EventEmitter() + @Input() + disabled: boolean = false + get isActive(): boolean { return ( this.relativeDate !== null || diff --git a/src-ui/src/app/components/common/permissions-filter-dropdown/permissions-filter-dropdown.component.html b/src-ui/src/app/components/common/permissions-filter-dropdown/permissions-filter-dropdown.component.html index 49218799a..8cac4dce8 100644 --- a/src-ui/src/app/components/common/permissions-filter-dropdown/permissions-filter-dropdown.component.html +++ b/src-ui/src/app/components/common/permissions-filter-dropdown/permissions-filter-dropdown.component.html @@ -1,5 +1,5 @@
-