Commit 633131574aba096fecaa871753bc8538876e0375

Authored by Artem Babak
1 parent 50127b8c

Remove UI widgetBundles filter if Edge if disabled

... ... @@ -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
... ...