Project

General

Profile

« Previous | Next » 

Revision 58707

[Monitor_Dashboard | Trunk]: Add default badge. Fix a bug with indicators deafultId. Add option to create a blank profile.

View differences:

indicator-utils.ts
14 14
  defaultProfiles = {"funder":{
15 15
      index_id:"ec__________::EC",
16 16
  index_name:     "European Commission", index_shortName:"EC"}};
17
  
18
  
17 19
  types: Option[] = [
18
    {value: 'funder', label: 'Funder'}
20
    {value: 'funder', label: 'Funder'},
21
    {value: 'ri', label: 'Reasearch Initiative'},
22
    {value: 'project', label: 'Project'},
23
    {value: 'organization', label: 'Organization'}
19 24
  ];
20 25

  
21 26
  isPublic: Option[] = [
......
224 229

  
225 230
  generateIndicatorByForm(form: any, indicatorPaths: IndicatorPath[]): Indicator {
226 231
    let indicator: Indicator = new Indicator(form.name, form.description, 'chart',
227
      form.width, form.isActive, form.isPublic, indicatorPaths);
232
      form.width, form.isActive, form.isPublic, indicatorPaths, form.defaultId);
228 233
    indicator._id = form.id;
229 234
    form.indicatorPaths.forEach((indicatorPath, index) => {
230 235
      indicatorPath.parameters.forEach(parameter => {

Also available in: Unified diff