fixed issues

worklist-umar-Q3
umasoodch 4 years ago
parent d23c52d460
commit 4a25fea675

@ -330,7 +330,6 @@ export class HomeComponent implements OnInit {
if (filter.key === this.itemType) { if (filter.key === this.itemType) {
filter.disable = false; filter.disable = false;
filter.active = true; filter.active = true;
filter.value = 0;
this.selectedFilter = filter.name; this.selectedFilter = filter.name;
} else if (this.itemType === '') { } else if (this.itemType === '') {
filter.disable = false; filter.disable = false;
@ -345,6 +344,7 @@ export class HomeComponent implements OnInit {
} }
} }
async openSearchModal() { async openSearchModal() {
const modal = await this.modalController.create({ const modal = await this.modalController.create({
component: WorklistAdvancedSearchComponent, component: WorklistAdvancedSearchComponent,
@ -369,7 +369,12 @@ export class HomeComponent implements OnInit {
this.newWorkListResponse = []; this.newWorkListResponse = [];
this.showFormattedData = []; this.showFormattedData = [];
this.allFormattedData = []; this.allFormattedData = [];
this.selectedFilter = 'ALL'; // this.selectedFilter = 'ALL';
if (this.itemType !== '') {
this.disableFilters();
}
this.filters[this.currentActiveIndex].active = false; this.filters[this.currentActiveIndex].active = false;
this.currentActiveIndex = 0; this.currentActiveIndex = 0;
this.previousActiveIndex = 0; this.previousActiveIndex = 0;

Loading…
Cancel
Save