bugfix: uppercase every first letter in peripherie names

Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
Stefan Dej committed 2021-01-14 23:35:29 +01:00
1 parent 93c952cabb
commit d2d8546bc9
1 file changed
+8 -4
+8 -4
View File
@@ -79,11 +79,15 @@
},
computed: {
convertName() {
let tmp = this.name;
tmp = tmp.replaceAll("_", " ");
tmp = tmp.charAt(0).toUpperCase() + tmp.slice(1);
let tmp = this.name
let output = ""
tmp = tmp.replaceAll("_", " ")
tmp.split(" ").forEach(split => {
output += " "+split.charAt(0).toUpperCase() + split.slice(1)
})
output = output.slice(1)
return tmp;
return output;
}
},
methods: {