fix(user-config): Validate device, keymap, and macro names (#543)
* fix(user-config): Validate device, keymap, and macro names * fix device name renaming
This commit is contained in:
committed by
László Monda
parent
13f064229f
commit
bbce1e0e0f
@@ -74,7 +74,7 @@ export class KeymapHeaderComponent implements OnChanges {
|
||||
}
|
||||
|
||||
editKeymapName(name: string) {
|
||||
if (name.length === 0) {
|
||||
if (!util.isValidName(name)) {
|
||||
this.setName();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user