[Monitor Dashboard: Trunk]: Change indicators to active by default

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-monitor-portal/trunk/monitor_dashboard@58876 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
Konstantinos Triantafyllou 2020-06-10 15:30:43 +00:00
parent bf58c1b7d5
commit eb2ea8235a
1 changed files with 9 additions and 9 deletions

View File

@ -502,7 +502,7 @@ export class IndicatorsComponent implements OnInit, OnDestroy, OnChanges, AfterV
this.addNumberIndicatorPath(indicatorPath.url, indicatorPath.source, this.getJsonPathAsFormArray(indicatorPath));
});
} else {
this.indicator = new Indicator('', '', 'number', 'small', false, false, []);
this.indicator = new Indicator('', '', 'number', 'small', true, true, []);
this.numberIndicatorFb = this.fb.group({
_id: this.fb.control(this.indicator._id),
name: this.fb.control(this.indicator.name),
@ -556,16 +556,16 @@ export class IndicatorsComponent implements OnInit, OnDestroy, OnChanges, AfterV
indicatorPath.safeResourceUrl = this.getSecureUrlByStakeHolder(indicatorPath);
});
} else {
this.indicator = new Indicator('', '', 'chart', 'small', false, false, []);
this.indicator = new Indicator('', '', 'chart', 'small', true, true, []);
this.chartIndicatorFb = this.fb.group({
_id: this.fb.control(null),
name: this.fb.control(''),
description: this.fb.control(''),
isPublic: this.fb.control(false),
isActive: this.fb.control(false),
_id: this.fb.control(this.indicator._id),
name: this.fb.control(this.indicator.name),
description: this.fb.control(this.indicator.description),
isPublic: this.fb.control(this.indicator.isPublic),
isActive: this.fb.control(this.indicator.isActive),
indicatorPaths: this.fb.array([]),
width: this.fb.control('small', Validators.required),
defaultId: this.fb.control(null)
width: this.fb.control(this.indicator.width, Validators.required),
defaultId: this.fb.control(this.indicator.defaultId)
});
this.addChartIndicatorPath();
}