- watch all changes on DataOptions models in dataservice
- npm updates
This commit is contained in:
parent
7f13e31251
commit
cd4119b986
9 changed files with 948 additions and 467 deletions
|
@ -18,6 +18,7 @@ export class DiagramViewComponent implements OnInit {
|
|||
public selectedIds: string[] = [];
|
||||
|
||||
public datasetOptions: Map<string, DatasetOptions> = new Map();
|
||||
public datasetArray: Array <DatasetOptions>;
|
||||
|
||||
public diagramLoading: boolean;
|
||||
public overviewLoading: boolean;
|
||||
|
@ -43,6 +44,7 @@ export class DiagramViewComponent implements OnInit {
|
|||
private setDatasets() {
|
||||
this.datasetIds = this.datasetService.datasetIds;
|
||||
this.datasetOptions = this.datasetService.datasetOptions;
|
||||
this.datasetArray = Array.from(this.datasetOptions.values());
|
||||
}
|
||||
|
||||
public removeAllTimeseries() {
|
||||
|
@ -65,8 +67,14 @@ export class DiagramViewComponent implements OnInit {
|
|||
this.selectedIds = [];
|
||||
}
|
||||
|
||||
public onUpdateOptions(options: DatasetOptions, internalId: string) {
|
||||
this.datasetService.updateDatasetOptions(options, internalId);
|
||||
public onUpdateOptions(datasetOption: DatasetOptions, internalId: string) {
|
||||
// this.datasetService.updateDatasetOptions(datasetOption, internalId);
|
||||
|
||||
// let arrIndex = this.datasetArray.findIndex(x => x.internalId === internalId);
|
||||
// this.datasetArray[arrIndex] = datasetOption;
|
||||
|
||||
// this.datasetOptions = new Map <string, DatasetOptions>([]);
|
||||
// this.datasetOptions = this.datasetService.datasetOptions;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue