mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-02 08:09:19 +08:00
Fix subpanel filter display
This commit is contained in:
parent
06d915fcb7
commit
ebb6b78ed0
2 changed files with 6 additions and 5 deletions
|
@ -38,7 +38,7 @@
|
|||
></scrm-action-group-menu>
|
||||
</span>
|
||||
<div panel-body>
|
||||
<scrm-list-filter *ngIf="store.showFilter" [config]="filterConfig"></scrm-list-filter>
|
||||
<scrm-list-filter *ngIf="store.showFilter()" [config]="filterConfig"></scrm-list-filter>
|
||||
<scrm-table [config]="tableConfig"></scrm-table>
|
||||
</div>
|
||||
</scrm-panel>
|
||||
|
|
|
@ -77,7 +77,7 @@ export class SubpanelStore implements StateStore {
|
|||
// Filter variables
|
||||
filterList: FilterListStore;
|
||||
criteria$: Observable<SearchCriteria>;
|
||||
showFilter = false;
|
||||
showFilter: WritableSignal<boolean> = signal(false);
|
||||
filterApplied = false;
|
||||
|
||||
preferenceKey = null;
|
||||
|
@ -132,7 +132,7 @@ export class SubpanelStore implements StateStore {
|
|||
|
||||
searchFilter() {
|
||||
this.filterApplied = true;
|
||||
this.showFilter = false;
|
||||
this.showFilter.set(false);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -239,7 +239,7 @@ export class SubpanelStore implements StateStore {
|
|||
public clearFilter(): void {
|
||||
this.resetFilters();
|
||||
this.filterApplied = false;
|
||||
this.showFilter = false;
|
||||
this.showFilter.set(false);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -425,7 +425,8 @@ export class SubpanelStore implements StateStore {
|
|||
}
|
||||
|
||||
public toggleFilter(): boolean {
|
||||
return this.showFilter = !this.showFilter;
|
||||
this.showFilter.set(!this.showFilter());
|
||||
return this.showFilter();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue