-
-
Notifications
You must be signed in to change notification settings - Fork 486
Open
Description
Checkboxes are not checked when the page loads, although they should.
The problem was in a non-strict condition
Solution for ItemListTree.vue:
<button class="btn-status me-2" type="button" @click="toggleStatus(node)">
<span v-if="translatable" :class="node.data.status_translated == 1 ? 'btn-status-icon-on' : 'btn-status-icon-off'" class="btn-status-icon"></span>
<span v-else :class="node.data.status == 1 ? 'btn-status-icon-on' : 'btn-status-icon-off'" class="btn-status-icon"></span>
</button>Solution for ItemListStatusButton.vue:
statusOn() {
if (typeof this.model.status_translated === 'undefined') {
return parseInt(this.model.status) == '1';
} else {
return this.model.status_translated == '1';
}
},Metadata
Metadata
Assignees
Labels
No labels