Skip to content

Commit

Permalink
Code clean-ups
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 Feb 9, 2024
1 parent 8b841fb commit 4d881dd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 20 deletions.
15 changes: 1 addition & 14 deletions bundles/org.openhab.ui/web/src/components/thing/channel-link.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,24 +104,11 @@ export default {
}
},
addLink () {
const self = this
this.$f7router.navigate({
url: 'links/new',
route: {
component: AddLinkPage,
path: 'links/new',
props: {
},
on: {
pageAfterOut (event, page) {
// const finalChannel = page.app.data.finalChannel
// if (finalChannel) {
// delete page.app.data.finalChannel
// self.thing.channels.push(finalChannel)
// self.$emit('links-updated')
// }
}
}
path: 'links/new'
}
}, {
props: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
:parameter-groups="configDescription.parameterGroups"
:parameters="configDescription.parameters"
:configuration="config"
:read-only="!thing.editable"/>
:read-only="!thing.editable" />
</f7-col>
</f7-block>
</f7-page>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -784,11 +784,6 @@ export default {
const editableChannels = []
const isExtensible = (channel, thingType) => {
const bindingId = thingType.UID.split(':')[0]
return thingType.extensibleChannelTypeIds.map((t) => bindingId + ':' + t).indexOf(channel.channelTypeUID) >= 0
}
for (const channel of this.thing.channels) {
const editableChannel = {
id: channel.id,
Expand Down

0 comments on commit 4d881dd

Please sign in to comment.