Skip to content

Commit

Permalink
feat(admin-ui): Add filter preset support to Collection list
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Sep 6, 2023
1 parent 2b9ce33 commit cbfb402
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
<ng-content select="vdr-bulk-action-menu"></ng-content>
</div>
<div class="table-wrapper">
<table
class=""
[class.no-select]="disableSelect"
>
<vdr-data-table-filter-presets
*ngIf="filters"
[filters]="filters"
[dataTableId]="id"
></vdr-data-table-filter-presets>
<table class="" [class.no-select]="disableSelect">
<thead [class.items-selected]="selectionManager?.selection.length">
<tr class="heading-row">
<th *ngIf="selectionManager" class="selection-col">
Expand Down Expand Up @@ -76,6 +78,10 @@
[filters]="filters"
class="mt-1"
></vdr-data-table-filters>
<vdr-add-filter-preset-button
[filters]="filters"
[dataTableId]="id"
></vdr-add-filter-preset-button>
</div>
</ng-container>
</div>
Expand Down
11 changes: 4 additions & 7 deletions packages/admin-ui/src/lib/core/src/shared/shared.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,9 @@ const DECLARATIONS = [
AssignToChannelDialogComponent,
CurrencyCodeSelectorComponent,
LanguageCodeSelectorComponent,
DataTableFilterPresetsComponent,
AddFilterPresetButtonComponent,
RenameFilterPresetDialogComponent,
];

const DYNAMIC_FORM_INPUTS = [
Expand Down Expand Up @@ -349,13 +352,7 @@ const DYNAMIC_FORM_INPUTS = [
@NgModule({
imports: [IMPORTS],
exports: [...IMPORTS, ...DECLARATIONS, ...DYNAMIC_FORM_INPUTS],
declarations: [
...DECLARATIONS,
...DYNAMIC_FORM_INPUTS,
DataTableFilterPresetsComponent,
AddFilterPresetButtonComponent,
RenameFilterPresetDialogComponent,
],
declarations: [...DECLARATIONS, ...DYNAMIC_FORM_INPUTS],
providers: [
// This needs to be shared, since lazy-loaded
// modules have their own entryComponents which
Expand Down

0 comments on commit cbfb402

Please sign in to comment.