Project

General

Profile

« Previous | Next » 

Revision 57618

[Monitor Dashboard]: Fix validation of names in dropdown edit. Move getFullUrl on inidicator Utils

View differences:

stakeholder.ts
361 361
    this.parameters = new Map<string, string>();
362 362
    this.filters = new Map<string, Map<string,string>>();
363 363
  }
364

  
364 365
  static createParameters(funderName:string=null, title:string=null, chartType:string=null):Map<string, string>{
365 366
    let parameters = new Map<string, string>();
366 367
    parameters.set("funder_name",funderName);
......
368 369
    parameters.set("type",chartType);
369 370
    return parameters;
370 371
  }
371
  getFullUrl():string{
372
    let replacedUrl = this.chartObject;
373
    this.parameters.forEach((value: string, key: string) => {
374
      replacedUrl = replacedUrl.replace(ChartHelper.prefix+key+ChartHelper.suffix,value);
375
    });
376

  
377
    return this.url + encodeURIComponent(replacedUrl);
378
  }
379

  
380 372
}

Also available in: Unified diff