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
Florian Hotze 2023-12-05 22:24:12 +01:00 committed by GitHub
parent 617f70b103
commit 1c15a11b73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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(() => {