add clear filters to plan listing filters dialog, changes lost dialog > change "LEAVE" to lowercase
This commit is contained in:
parent
ffe8b6b672
commit
fb4712fc43
|
@ -103,21 +103,21 @@
|
|||
</div>
|
||||
<!-- End of Reference Types -->
|
||||
|
||||
<!-- <div class="col-10 d-flex justify-content-between mb-4">
|
||||
<button mat-button class="rounded-btn secondary" (click)="resetFilters()" style="font-size: 0.87rem;">
|
||||
Reset
|
||||
<div class="col-10 d-flex justify-content-between mb-4">
|
||||
<button mat-button class="normal-btn-sm rounded-btn secondary" (click)="resetFilters()" style="font-size: 0.87rem;">
|
||||
{{'PLAN-LISTING.FILTERS.RESET-FILTERS' | translate}}
|
||||
</button>
|
||||
<button class="normal-btn-sm" (click)="controlModified()">
|
||||
{{'PLAN-LISTING.FILTERS.APPLY-FILTERS' | translate}}
|
||||
</button>
|
||||
</div>
|
||||
<!--
|
||||
<div class="d-flex mb-4">
|
||||
<button class="normal-btn-sm" (click)="controlModified()">
|
||||
{{'PLAN-LISTING.FILTERS.APPLY-FILTERS' | translate}}
|
||||
</button>
|
||||
</div> -->
|
||||
|
||||
<div class="d-flex mb-4">
|
||||
<button class="normal-btn-sm" (click)="controlModified()">
|
||||
{{'PLAN-LISTING.FILTERS.APPLY-FILTERS' | translate}}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -104,7 +104,16 @@ export class PlanFilterComponent extends BaseCriteriaComponent<PlanListingFilter
|
|||
}
|
||||
|
||||
resetFilters(){
|
||||
this.buildForm(null);
|
||||
this.formGroup.reset();
|
||||
this.formGroup.patchValue({
|
||||
descriptionTemplates: null,
|
||||
planBlueprints: null,
|
||||
references: null,
|
||||
role: null,
|
||||
status: null,
|
||||
viewOnlyTenant: null
|
||||
});
|
||||
this.referenceAutocompleteConfiguration.clear();
|
||||
}
|
||||
|
||||
onCallbackError(error: any) {
|
||||
|
|
|
@ -408,7 +408,7 @@ export class PlanListingComponent extends BaseListingComponent<BasePlan, PlanLoo
|
|||
|
||||
private _patchLookupFromFilters(filters: PlanListingFilters): PlanLookup {
|
||||
|
||||
this.lookup.statuses = filters?.status !== null ? [filters.status] : [];
|
||||
this.lookup.statuses = filters?.status !== null ? [filters.status] : null;
|
||||
|
||||
// Tenants
|
||||
let viewOnlyTenant = filters?.viewOnlyTenant ?? false;
|
||||
|
|
|
@ -238,7 +238,7 @@
|
|||
"MESSAGE": "If you leave, your changes will be lost.",
|
||||
"ACTIONS": {
|
||||
"CANCEL": "Cancel",
|
||||
"LEAVE": "LEAVE"
|
||||
"LEAVE": "Leave"
|
||||
}
|
||||
},
|
||||
"FIELDS": {
|
||||
|
|
|
@ -238,7 +238,7 @@
|
|||
"MESSAGE": "If you leave, your changes will be lost.",
|
||||
"ACTIONS": {
|
||||
"CANCEL": "Cancel",
|
||||
"LEAVE": "LEAVE"
|
||||
"LEAVE": "Leave"
|
||||
}
|
||||
},
|
||||
"FIELDS": {
|
||||
|
|
|
@ -238,7 +238,7 @@
|
|||
"MESSAGE": "If you leave, your changes will be lost.",
|
||||
"ACTIONS": {
|
||||
"CANCEL": "Cancel",
|
||||
"LEAVE": "LEAVE"
|
||||
"LEAVE": "Leave"
|
||||
}
|
||||
},
|
||||
"FIELDS": {
|
||||
|
@ -756,6 +756,7 @@
|
|||
"FILTERS": {
|
||||
"NAME": "Filters",
|
||||
"APPLY-FILTERS": "Apply filters",
|
||||
"RESET-FILTERS": "Reset",
|
||||
"NO-ITEMS-FOUND": "Your search didn't match any items.",
|
||||
"STATUS": {
|
||||
"NAME": "Status",
|
||||
|
|
|
@ -238,7 +238,7 @@
|
|||
"MESSAGE": "If you leave, your changes will be lost.",
|
||||
"ACTIONS": {
|
||||
"CANCEL": "Cancel",
|
||||
"LEAVE": "LEAVE"
|
||||
"LEAVE": "Leave"
|
||||
}
|
||||
},
|
||||
"FIELDS": {
|
||||
|
@ -758,6 +758,7 @@
|
|||
"FILTERS": {
|
||||
"NAME": "Filters",
|
||||
"APPLY-FILTERS": "Apply filters",
|
||||
"RESET-FILTERS": "Reset",
|
||||
"NO-ITEMS-FOUND": "Your search didn't match any items.",
|
||||
"STATUS": {
|
||||
"NAME": "Status",
|
||||
|
|
|
@ -238,7 +238,7 @@
|
|||
"MESSAGE": "If you leave, your changes will be lost.",
|
||||
"ACTIONS": {
|
||||
"CANCEL": "Cancel",
|
||||
"LEAVE": "LEAVE"
|
||||
"LEAVE": "Leave"
|
||||
}
|
||||
},
|
||||
"FIELDS": {
|
||||
|
@ -758,6 +758,7 @@
|
|||
"FILTERS": {
|
||||
"NAME": "Filters",
|
||||
"APPLY-FILTERS": "Apply filters",
|
||||
"RESET-FILTERS": "Reset",
|
||||
"NO-ITEMS-FOUND": "Your search didn't match any items.",
|
||||
"STATUS": {
|
||||
"NAME": "Status",
|
||||
|
|
|
@ -238,7 +238,7 @@
|
|||
"MESSAGE": "If you leave, your changes will be lost.",
|
||||
"ACTIONS": {
|
||||
"CANCEL": "Cancel",
|
||||
"LEAVE": "LEAVE"
|
||||
"LEAVE": "Leave"
|
||||
}
|
||||
},
|
||||
"FIELDS": {
|
||||
|
@ -758,6 +758,7 @@
|
|||
"FILTERS": {
|
||||
"NAME": "Filters",
|
||||
"APPLY-FILTERS": "Apply filters",
|
||||
"RESET-FILTERS": "Reset",
|
||||
"NO-ITEMS-FOUND": "Your search didn't match any items.",
|
||||
"STATUS": {
|
||||
"NAME": "Status",
|
||||
|
|
|
@ -238,7 +238,7 @@
|
|||
"MESSAGE": "If you leave, your changes will be lost.",
|
||||
"ACTIONS": {
|
||||
"CANCEL": "Cancel",
|
||||
"LEAVE": "LEAVE"
|
||||
"LEAVE": "Leave"
|
||||
}
|
||||
},
|
||||
"FIELDS": {
|
||||
|
@ -758,6 +758,7 @@
|
|||
"FILTERS": {
|
||||
"NAME": "Filters",
|
||||
"APPLY-FILTERS": "Apply filters",
|
||||
"RESET-FILTERS": "Reset",
|
||||
"NO-ITEMS-FOUND": "Your search didn't match any items.",
|
||||
"STATUS": {
|
||||
"NAME": "Status",
|
||||
|
|
|
@ -238,7 +238,7 @@
|
|||
"MESSAGE": "If you leave, your changes will be lost.",
|
||||
"ACTIONS": {
|
||||
"CANCEL": "Cancel",
|
||||
"LEAVE": "LEAVE"
|
||||
"LEAVE": "Leave"
|
||||
}
|
||||
},
|
||||
"FIELDS": {
|
||||
|
@ -758,6 +758,7 @@
|
|||
"FILTERS": {
|
||||
"NAME": "Filters",
|
||||
"APPLY-FILTERS": "Apply filters",
|
||||
"RESET-FILTERS": "Reset",
|
||||
"NO-ITEMS-FOUND": "Your search didn't match any items.",
|
||||
"STATUS": {
|
||||
"NAME": "Status",
|
||||
|
|
|
@ -238,7 +238,7 @@
|
|||
"MESSAGE": "If you leave, your changes will be lost.",
|
||||
"ACTIONS": {
|
||||
"CANCEL": "Cancel",
|
||||
"LEAVE": "LEAVE"
|
||||
"LEAVE": "Leave"
|
||||
}
|
||||
},
|
||||
"FIELDS": {
|
||||
|
@ -758,6 +758,7 @@
|
|||
"FILTERS": {
|
||||
"NAME": "Filters",
|
||||
"APPLY-FILTERS": "Apply filters",
|
||||
"RESET-FILTERS": "Reset",
|
||||
"NO-ITEMS-FOUND": "Your search didn't match any items.",
|
||||
"STATUS": {
|
||||
"NAME": "Status",
|
||||
|
|
|
@ -238,7 +238,7 @@
|
|||
"MESSAGE": "If you leave, your changes will be lost.",
|
||||
"ACTIONS": {
|
||||
"CANCEL": "Cancel",
|
||||
"LEAVE": "LEAVE"
|
||||
"LEAVE": "Leave"
|
||||
}
|
||||
},
|
||||
"FIELDS": {
|
||||
|
@ -758,6 +758,7 @@
|
|||
"FILTERS": {
|
||||
"NAME": "Filters",
|
||||
"APPLY-FILTERS": "Apply filters",
|
||||
"RESET-FILTERS": "Reset",
|
||||
"NO-ITEMS-FOUND": "Your search didn't match any items.",
|
||||
"STATUS": {
|
||||
"NAME": "Status",
|
||||
|
|
|
@ -238,7 +238,7 @@
|
|||
"MESSAGE": "If you leave, your changes will be lost.",
|
||||
"ACTIONS": {
|
||||
"CANCEL": "Cancel",
|
||||
"LEAVE": "LEAVE"
|
||||
"LEAVE": "Leave"
|
||||
}
|
||||
},
|
||||
"FIELDS": {
|
||||
|
@ -758,6 +758,7 @@
|
|||
"FILTERS": {
|
||||
"NAME": "Filters",
|
||||
"APPLY-FILTERS": "Apply filters",
|
||||
"RESET-FILTERS": "Reset",
|
||||
"NO-ITEMS-FOUND": "Your search didn't match any items.",
|
||||
"STATUS": {
|
||||
"NAME": "Status",
|
||||
|
|
Loading…
Reference in New Issue