Skip to content

Commit

Permalink
Disable state description pattern field for existing Items
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
  • Loading branch information
florian-h05 committed Apr 20, 2024
1 parent 927c7d8 commit ef546be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bundles/org.openhab.ui/web/src/components/item/item-form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@
<f7-list-input v-show="itemDimension"
label="State Description Pattern"
type="text"
:info="(createMode) ? 'Pattern or transformation applied to the state for display purposes. Only saved if you change the pre-filled default value.' : ''"
:disabled="!editable"
:info="(createMode) ? 'Pattern or transformation applied to the state for display purposes. Only saved if you change the pre-filled default value.' : 'Pattern can only be changed from the state description metadata page after Item creation!'"
:disabled="!createMode"
:value="stateDescriptionPattern"
@input="stateDescriptionPattern = $event.target.value"
:clear-button="editable" />
:clear-button="createMode" />

<!-- Group Item Form -->
<group-form ref="groupForm" v-if="itemType === 'Group'" :item="item" :createMode="createMode" />
Expand Down

0 comments on commit ef546be

Please sign in to comment.