|
|
|
@ -14,7 +14,7 @@ |
|
|
|
/// limitations under the License.
|
|
|
|
///
|
|
|
|
|
|
|
|
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; |
|
|
|
import { ChangeDetectorRef, Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; |
|
|
|
import { WidgetsBundle } from '@shared/models/widgets-bundle.model'; |
|
|
|
import { IAliasController } from '@core/api/widget-api.models'; |
|
|
|
import { NULL_UUID } from '@shared/models/id/has-uuid'; |
|
|
|
@ -88,7 +88,8 @@ export class DashboardWidgetSelectComponent implements OnInit { |
|
|
|
widgetsBundleSelected: EventEmitter<WidgetsBundle> = new EventEmitter<WidgetsBundle>(); |
|
|
|
|
|
|
|
constructor(private widgetsService: WidgetService, |
|
|
|
private sanitizer: DomSanitizer) { |
|
|
|
private sanitizer: DomSanitizer, |
|
|
|
private cd: ChangeDetectorRef) { |
|
|
|
this.widgetsBundles$ = this.search$.asObservable().pipe( |
|
|
|
distinctUntilChanged(), |
|
|
|
switchMap(search => this.fetchWidgetBundle(search)) |
|
|
|
@ -128,6 +129,7 @@ export class DashboardWidgetSelectComponent implements OnInit { |
|
|
|
); |
|
|
|
setTimeout(() => { |
|
|
|
this.widgetTypes = widgetTypes; |
|
|
|
this.cd.markForCheck(); |
|
|
|
}); |
|
|
|
return widgetInfos; |
|
|
|
}), |
|
|
|
|