From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Wed, 23 Aug 2023 05:11:53 +0000 (-0700) Subject: Frontend better handle slow backend requests X-Git-Tag: v2.0.0-beta.1~141^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4055%2Fhead;p=thirdparty%2Fpaperless-ngx.git Frontend better handle slow backend requests --- 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 ad790821e4..4f9410bee2 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 b1493a7d3b..d8d482033e 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 49218799ab..8cac4dce87 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 @@
-