Commit 633131574aba096fecaa871753bc8538876e0375
1 parent
50127b8c
Remove UI widgetBundles filter if Edge if disabled
Showing
1 changed file
with
1 additions
and
8 deletions
... | ... | @@ -121,14 +121,7 @@ export class WidgetsBundlesTableConfigResolver implements Resolve<EntityTableCon |
121 | 121 | this.config.entitySelectionEnabled = (widgetsBundle) => this.isWidgetsBundleEditable(widgetsBundle, authUser.authority); |
122 | 122 | this.config.detailsReadonly = (widgetsBundle) => !this.isWidgetsBundleEditable(widgetsBundle, authUser.authority); |
123 | 123 | const authState = getCurrentAuthState(this.store); |
124 | - this.config.entitiesFetchFunction = pageLink => this.widgetsService.getWidgetBundles(pageLink).pipe( | |
125 | - map((widgetBundles) => { | |
126 | - if (!authState.edgesSupportEnabled) { | |
127 | - widgetBundles.data = widgetBundles.data.filter(widgetBundle => widgetBundle.alias !== 'edge_widgets'); | |
128 | - } | |
129 | - return widgetBundles; | |
130 | - }) | |
131 | - ); | |
124 | + this.config.entitiesFetchFunction = pageLink => this.widgetsService.getWidgetBundles(pageLink); | |
132 | 125 | return this.config; |
133 | 126 | } |
134 | 127 | ... | ... |