Commit 33ac57a1a85cbf7f5bb5fb27850ec25c01b6ca69
1 parent
35feb2fe
Added sorting of widget bundles by name
Showing
1 changed file
with
2 additions
and
0 deletions
@@ -37,6 +37,7 @@ import { getCurrentAuthUser } from '@app/core/auth/auth.selectors'; | @@ -37,6 +37,7 @@ import { getCurrentAuthUser } from '@app/core/auth/auth.selectors'; | ||
37 | import { Authority } from '@shared/models/authority.enum'; | 37 | import { Authority } from '@shared/models/authority.enum'; |
38 | import { DialogService } from '@core/services/dialog.service'; | 38 | import { DialogService } from '@core/services/dialog.service'; |
39 | import { ImportExportService } from '@home/components/import-export/import-export.service'; | 39 | import { ImportExportService } from '@home/components/import-export/import-export.service'; |
40 | +import { Direction } from "@shared/models/page/sort-order"; | ||
40 | 41 | ||
41 | @Injectable() | 42 | @Injectable() |
42 | export class WidgetsBundlesTableConfigResolver implements Resolve<EntityTableConfig<WidgetsBundle>> { | 43 | export class WidgetsBundlesTableConfigResolver implements Resolve<EntityTableConfig<WidgetsBundle>> { |
@@ -55,6 +56,7 @@ export class WidgetsBundlesTableConfigResolver implements Resolve<EntityTableCon | @@ -55,6 +56,7 @@ export class WidgetsBundlesTableConfigResolver implements Resolve<EntityTableCon | ||
55 | this.config.entityComponent = WidgetsBundleComponent; | 56 | this.config.entityComponent = WidgetsBundleComponent; |
56 | this.config.entityTranslations = entityTypeTranslations.get(EntityType.WIDGETS_BUNDLE); | 57 | this.config.entityTranslations = entityTypeTranslations.get(EntityType.WIDGETS_BUNDLE); |
57 | this.config.entityResources = entityTypeResources.get(EntityType.WIDGETS_BUNDLE); | 58 | this.config.entityResources = entityTypeResources.get(EntityType.WIDGETS_BUNDLE); |
59 | + this.config.defaultSortOrder = {property: 'title', direction: Direction.ASC}; | ||
58 | 60 | ||
59 | this.config.entityTitle = (widgetsBundle) => widgetsBundle ? | 61 | this.config.entityTitle = (widgetsBundle) => widgetsBundle ? |
60 | widgetsBundle.title : ''; | 62 | widgetsBundle.title : ''; |