Browse Source
Merge pull request #12063 from vvlladd28/improvement/delete-widget/optimize
Optimize delete widget bundle
pull/12065/head
Andrew Shvayka
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
4 additions and
8 deletions
-
ui-ngx/src/app/core/http/widget.service.ts
|
|
|
@ -126,14 +126,10 @@ export class WidgetService { |
|
|
|
} |
|
|
|
|
|
|
|
public deleteWidgetsBundle(widgetsBundleId: string, config?: RequestConfig) { |
|
|
|
return this.getWidgetsBundle(widgetsBundleId, config).pipe( |
|
|
|
mergeMap((widgetsBundle) => this.http.delete(`/api/widgetsBundle/${widgetsBundleId}`, |
|
|
|
defaultHttpOptionsFromConfig(config)).pipe( |
|
|
|
tap(() => { |
|
|
|
this.invalidateWidgetsBundleCache(); |
|
|
|
}) |
|
|
|
) |
|
|
|
)); |
|
|
|
return this.http.delete(`/api/widgetsBundle/${widgetsBundleId}`, defaultHttpOptionsFromConfig(config)) |
|
|
|
.pipe( |
|
|
|
tap(() => this.invalidateWidgetsBundleCache()) |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
public getBundleWidgetTypes(widgetsBundleId: string, |
|
|
|
|