refactoring

This commit is contained in:
mpetrov 2024-06-21 16:36:40 +03:00
parent 8e7e1b7f9b
commit 03b6431931
2 changed files with 2 additions and 4 deletions

View File

@ -880,7 +880,7 @@
"isConnectorLog": true,
"connectorLogState": "connector_logs"
},
"title": "${entityNameLogs}",
"title": "${entityName} Logs",
"showTitleIcon": false,
"dropShadow": true,
"enableFullscreen": true,

View File

@ -415,9 +415,7 @@ export const createLabelFromDatasource = (datasource: Datasource, pattern: strin
label = label.replace(variable, datasource.name);
} else if (variableName === 'entityName') {
label = label.replace(variable, datasource.entityName);
} else if (variableName === 'entityNameLogs') {
label = label.replace(variable, datasource.entityName + ' Logs');
} else if (variableName === 'deviceName') {
} else if (variableName === 'deviceName') {
label = label.replace(variable, datasource.entityName);
} else if (variableName === 'entityLabel') {
label = label.replace(variable, datasource.entityLabel || datasource.entityName);