Skip to content

Commit

Permalink
fix not saving table filters for dialogs and droptables
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Aug 28, 2024
1 parent 4e005ea commit 6675774
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/app/tabs/dialogs/dialogs.component.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
@let editing = isEditing();

<app-editor-view-table [class.hidden]="editing" [dataType]="'dialogs'" [tableColumns]="tableColumns"
[tableItems]="tableItems()" (create)="createNew()"></app-editor-view-table>
[tableItems]="tableItems()" (create)="createNew()" (filterChanged)="filterChanged($event)"
[defaultFilterState]="tableFilterState()"></app-editor-view-table>

@if(editing) {
<app-dialogs-editor class="h-full w-full" [editing]="editingData()" (goBack)="cancelEditing()"
Expand Down
3 changes: 2 additions & 1 deletion src/app/tabs/droptables/droptables.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
</div>
} @else {
<app-editor-view-table [class.hidden]="editing" [dataType]="'droptables'" [tableColumns]="tableColumns"
[tableItems]="tableItems()" (create)="createNew()"></app-editor-view-table>
[tableItems]="tableItems()" (create)="createNew()" (filterChanged)="filterChanged($event)"
[defaultFilterState]="tableFilterState()"></app-editor-view-table>
}

@if(editing) {
Expand Down

0 comments on commit 6675774

Please sign in to comment.