Browse Source

UI: Optimize delete widget bundle

pull/12063/head
Vladyslav_Prykhodko 2 years ago
parent
commit
d54e0ca5ee
  1. 12
      ui-ngx/src/app/core/http/widget.service.ts

12
ui-ngx/src/app/core/http/widget.service.ts

@ -126,14 +126,10 @@ export class WidgetService {
} }
public deleteWidgetsBundle(widgetsBundleId: string, config?: RequestConfig) { public deleteWidgetsBundle(widgetsBundleId: string, config?: RequestConfig) {
return this.getWidgetsBundle(widgetsBundleId, config).pipe( return this.http.delete(`/api/widgetsBundle/${widgetsBundleId}`, defaultHttpOptionsFromConfig(config))
mergeMap((widgetsBundle) => this.http.delete(`/api/widgetsBundle/${widgetsBundleId}`, .pipe(
defaultHttpOptionsFromConfig(config)).pipe( tap(() => this.invalidateWidgetsBundleCache())
tap(() => { );
this.invalidateWidgetsBundleCache();
})
)
));
} }
public getBundleWidgetTypes(widgetsBundleId: string, public getBundleWidgetTypes(widgetsBundleId: string,

Loading…
Cancel
Save