commands like reset can't be renamed. use translated name for commands like these.

This commit is contained in:
Proddy
2022-09-25 10:45:08 +02:00
parent c841c8c284
commit 96af9afc83
3 changed files with 14 additions and 9 deletions

View File

@@ -169,8 +169,8 @@ const SettingsCustomization: FC = () => {
return de.id;
}
if (de.n === '') {
return LL.COMMAND() + ': ' + de.id;
if (de.n[0] === '!') {
return LL.COMMAND() + ': ' + de.n.slice(1);
}
return (
@@ -316,6 +316,10 @@ const SettingsCustomization: FC = () => {
};
const editEntity = (de: DeviceEntity) => {
if (de.n && de.n[0] === '!') {
return;
}
if (de.cn === undefined) {
de.cn = '';
}