From 999b36473c933c3029fb54c983d05babca9f39a6 Mon Sep 17 00:00:00 2001 From: jonaswinkler Date: Tue, 15 Dec 2020 03:29:23 +0100 Subject: [PATCH 01/48] more refactoring and bug fixing. --- .../filter-editor/filter-editor.component.ts | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src-ui/src/app/components/filter-editor/filter-editor.component.ts b/src-ui/src/app/components/filter-editor/filter-editor.component.ts index f98b9517f..a11f0736a 100644 --- a/src-ui/src/app/components/filter-editor/filter-editor.component.ts +++ b/src-ui/src/app/components/filter-editor/filter-editor.component.ts @@ -200,24 +200,21 @@ export class FilterEditorComponent implements OnInit, OnDestroy { } setDateFilter(date: NgbDateStruct, dateRuleTypeID: number) { - let filterRules = this.filterRules - let existingRule = filterRules.find(rule => rule.rule_type == dateRuleTypeID) + let existingRule = this.filterRules.find(rule => rule.rule_type == dateRuleTypeID) let newValue = this.dateParser.format(date) if (existingRule) { existingRule.value = newValue } else { - filterRules.push({rule_type: dateRuleTypeID, value: newValue}) + this.filterRules.push({rule_type: dateRuleTypeID, value: newValue}) } - - this.filterRules = filterRules } clearDateFilter(dateRuleTypeID: number) { - let filterRules = this.filterRules - let existingRule = filterRules.find(rule => rule.rule_type == dateRuleTypeID) - filterRules.splice(filterRules.indexOf(existingRule), 1) - this.filterRules = filterRules + let ruleIndex = this.filterRules.findIndex(rule => rule.rule_type == dateRuleTypeID) + if (ruleIndex != -1) { + this.filterRules.splice(ruleIndex, 1) + } } } From 6d39dfeb3b096d994d303e8f89faeb09142a2eaa Mon Sep 17 00:00:00 2001 From: jonaswinkler Date: Tue, 15 Dec 2020 03:53:18 +0100 Subject: [PATCH 02/48] forgot to address this. --- .../components/document-list/document-list.component.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src-ui/src/app/components/document-list/document-list.component.html b/src-ui/src/app/components/document-list/document-list.component.html index acbfd3602..1b3596098 100644 --- a/src-ui/src/app/components/document-list/document-list.component.html +++ b/src-ui/src/app/components/document-list/document-list.component.html @@ -93,16 +93,16 @@ - {{(d.correspondent$ | async)?.name}} + {{(d.correspondent$ | async)?.name}} {{d.title | documentTitle}} - + - {{(d.document_type$ | async)?.name}} + {{(d.document_type$ | async)?.name}} From 164755c755a170678bfd648f6f72261eee7c4af6 Mon Sep 17 00:00:00 2001 From: Michael Shamoon <4887959+nikonratm@users.noreply.github.com> Date: Mon, 14 Dec 2020 19:45:22 -0800 Subject: [PATCH 03/48] Breakpoints for screen sizes, icons for mobile --- .../document-list.component.html | 2 +- .../filter-dropdown.component.html | 14 +++++- .../filter-dropdown.component.ts | 2 +- .../filter-editor.component.html | 45 ++++++++++--------- 4 files changed, 40 insertions(+), 23 deletions(-) diff --git a/src-ui/src/app/components/document-list/document-list.component.html b/src-ui/src/app/components/document-list/document-list.component.html index acbfd3602..5f91deb5f 100644 --- a/src-ui/src/app/components/document-list/document-list.component.html +++ b/src-ui/src/app/components/document-list/document-list.component.html @@ -62,7 +62,7 @@ -
+
diff --git a/src-ui/src/app/components/filter-editor/filter-dropdown/filter-dropdown.component.html b/src-ui/src/app/components/filter-editor/filter-dropdown/filter-dropdown.component.html index 5de9228bd..76ef360fd 100644 --- a/src-ui/src/app/components/filter-editor/filter-dropdown/filter-dropdown.component.html +++ b/src-ui/src/app/components/filter-editor/filter-dropdown/filter-dropdown.component.html @@ -1,6 +1,18 @@