Channel edit: Fix regression causing editable channels to be locked (#2455)

Regression from #2403.

Channel doesn't have its own `editable` property.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
pull/2465/head
jimtng 2024-03-07 09:15:06 +10:00 committed by GitHub
parent e6d86ae14f
commit 0f804357c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
<f7-page @page:afterin="onPageAfterIn" name="channel-edit">
<f7-navbar :title="channel.label" :subtitle="thing.label" back-link="Cancel">
<f7-nav-right>
<f7-link v-if="!channel.editable" slot="right" icon-f7="lock_fill" icon-only tooltip="Channels of Things defined in a .things file are not editable from this screen" />
<f7-link v-if="!thing.editable" slot="right" icon-f7="lock_fill" icon-only tooltip="Channels of Things defined in a .things file are not editable from this screen" />
<f7-link @click="save()" v-else-if="$theme.md" icon-md="material:save" icon-only />
<f7-link @click="save()" v-else>
Done