Skip to content

Commit 5bde811

Browse files
committed
Improving the filtering for task-management.
1 parent c7ad4de commit 5bde811

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

eform-client/src/app/plugins/modules/backend-configuration-pn/modules/task-management/components/task-management-filters/task-management-filters.component.html

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,20 @@
2222
>
2323
</mtx-select>
2424
</mat-form-field>
25-
<button
26-
mat-icon-button
27-
id="updateEntityList"
28-
(click)="onShowEditEntityListModal()"
29-
matTooltip="{{ 'Edit list of areas for task management' | translate }}"
30-
>
31-
<mat-icon>list</mat-icon>
32-
</button>
25+
<ng-container *ngIf="propertyAreas && propertyAreas.length > 0">
26+
<div class="p-2">
27+
<button
28+
mat-raised-button
29+
color="accent"
30+
id="updateEntityList"
31+
(click)="onShowEditEntityListModal()"
32+
matTooltip="{{ 'Edit list of areas for task management' | translate }}"
33+
>
34+
{{ 'Areas' | translate }}
35+
<!-- <mat-icon>list</mat-icon>-->
36+
</button>
37+
</div>
38+
</ng-container>
3339
</div>
3440
<div class="d-flex flex-row need-wrapper">
3541
<mat-form-field>

eform-client/src/app/plugins/modules/backend-configuration-pn/modules/task-management/components/task-management-filters/task-management-filters.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,11 @@ export class TaskManagementFiltersComponent implements OnInit, OnDestroy {
110110
}),
111111
date: new FormGroup({
112112
dateFrom: new FormControl({
113-
value: new Date(),
113+
value: null,
114114
disabled: !filters.propertyId,
115115
}),
116116
dateTo: new FormControl({
117-
value: new Date(),
117+
value: null,
118118
disabled: !filters.propertyId,
119119
}),
120120
}),
@@ -142,7 +142,7 @@ export class TaskManagementFiltersComponent implements OnInit, OnDestroy {
142142
areaName: null,
143143
createdBy: null,
144144
lastAssignedTo: null,
145-
statuses: [1,3,4],
145+
statuses: [],
146146
date: {
147147
dateTo: null,
148148
dateFrom: null,

0 commit comments

Comments
 (0)