import { Component } from '@angular/core'; import { Store } from '@ngrx/store'; import { DatasetDefinition, NamedQueryActions, NamedQuerySelectors, PipelinePropertiesPanelComponent } from '@onepoint-yap/dashboard'; import { Observable } from 'rxjs'; @Component({ selector: 'yap-input-dataset-definition', templateUrl: './input-dataset-definition.component.html' }) export class InputDatasetDefinitionComponent extends PipelinePropertiesPanelComponent { datasetDefinitions$: Observable; constructor(private store: Store) { super(); this.store.dispatch(NamedQueryActions.loadDatasetDefinition()); this.datasetDefinitions$ = this.store.select(NamedQuerySelectors.datasetDefinitions); } change($event: any) { this.node.properties['datasetId'] = $event; this.checkFn(); } }