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:
Róbert Kiss
2018-01-03 21:06:08 +01:00
committed by László Monda
parent 13f064229f
commit bbce1e0e0f
8 changed files with 33 additions and 10 deletions

View File

@@ -74,7 +74,7 @@ export class KeymapHeaderComponent implements OnChanges {
}
editKeymapName(name: string) {
if (name.length === 0) {
if (!util.isValidName(name)) {
this.setName();
return;
}