Item edit: Fix wording of Item name alert (#2200)
Addresses https://github.com/openhab/openhab-webui/pull/2126#pullrequestreview-1765483229. Signed-off-by: Florian Hotze <florianh_dev@icloud.com>pull/2201/head
parent
617f70b103
commit
1c15a11b73
|
@ -160,7 +160,7 @@ export default {
|
|||
if (this.currentTab === 'code') {
|
||||
if (!this.fromYaml()) return Promise.reject()
|
||||
}
|
||||
if (!this.item.name) return this.$f7.dialog.alert('Please give Item a valid name').open() // user cannot change name
|
||||
if (!this.item.name) return this.$f7.dialog.alert('Please give the Item a valid name').open() // user cannot change name
|
||||
if (!this.item.type || !this.types.ItemTypes.includes(this.item.type.split(':')[0])) return this.$f7.dialog.alert('Please give Item a valid type').open()
|
||||
|
||||
this.doSave(this.item).then(() => {
|
||||
|
|
Loading…
Reference in New Issue