Browse Source

Minor fixes

pull/2730/head
Igor Kulikov 6 years ago
parent
commit
b07732a681
  1. 4
      ui-ngx/src/app/core/services/utils.service.ts
  2. 2
      ui-ngx/src/app/core/utils.ts

4
ui-ngx/src/app/core/services/utils.service.ts

@ -345,6 +345,10 @@ export class UtilsService {
return additionalDataKey;
}
public createLabelFromDatasource(datasource: Datasource, pattern: string): string {
return createLabelFromDatasource(datasource, pattern);
}
public generateColors(datasources: Array<Datasource>) {
let index = 0;
datasources.forEach((datasource) => {

2
ui-ngx/src/app/core/utils.ts

@ -460,7 +460,7 @@ export function insertVariable(pattern: string, name: string, value: any): strin
return result;
}
export function createLabelFromDatasource(datasource: Datasource, pattern: string) {
export function createLabelFromDatasource(datasource: Datasource, pattern: string): string {
let label = pattern;
if (!datasource) {
return label;

Loading…
Cancel
Save