Add support for entityLabel in HTML value card, replace entityLabel on entityName, if label doesn't exist (#2239)
This commit is contained in:
parent
424c137d3a
commit
f4656f3ea0
File diff suppressed because one or more lines are too long
@ -522,7 +522,7 @@ function Utils($mdColorPalette, $rootScope, $window, $translate, $q, $timeout, t
|
|||||||
} else if (variableName === 'deviceName') {
|
} else if (variableName === 'deviceName') {
|
||||||
label = label.split(variable).join(datasource.entityName);
|
label = label.split(variable).join(datasource.entityName);
|
||||||
} else if (variableName === 'entityLabel') {
|
} else if (variableName === 'entityLabel') {
|
||||||
label = label.split(variable).join(datasource.entityLabel);
|
label = label.split(variable).join(datasource.entityLabel || datasource.entityName);
|
||||||
} else if (variableName === 'aliasName') {
|
} else if (variableName === 'aliasName') {
|
||||||
label = label.split(variable).join(datasource.aliasName);
|
label = label.split(variable).join(datasource.aliasName);
|
||||||
} else if (variableName === 'entityDescription') {
|
} else if (variableName === 'entityDescription') {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user