From b07732a6811b0c2091d03cc07c55cfd614e0eb65 Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Tue, 5 May 2020 13:53:20 +0300 Subject: [PATCH] Minor fixes --- ui-ngx/src/app/core/services/utils.service.ts | 4 ++++ ui-ngx/src/app/core/utils.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ui-ngx/src/app/core/services/utils.service.ts b/ui-ngx/src/app/core/services/utils.service.ts index 7c56390af1..cff97a14a2 100644 --- a/ui-ngx/src/app/core/services/utils.service.ts +++ b/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) { let index = 0; datasources.forEach((datasource) => { diff --git a/ui-ngx/src/app/core/utils.ts b/ui-ngx/src/app/core/utils.ts index fa7cb2c3c8..d7e30a3474 100644 --- a/ui-ngx/src/app/core/utils.ts +++ b/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;