mirror of
https://github.com/pretix/pretix.git
synced 2026-10-01 19:14:43 +00:00
Fix checkboxes
This commit is contained in:
@@ -47,7 +47,7 @@ const props = defineProps<{
|
||||
<div class="checkbox" v-for="channel in sales_channels">
|
||||
<label>
|
||||
<input type="checkbox" :checked="questionnaire.all_sales_channels || questionnaire.limit_sales_channels.indexOf(channel.identifier) !== -1"
|
||||
@change="e => setListState(questionnaire.limit_sales_channels, channel.identifier, e.target.checked)"
|
||||
@change="e => setListState(questionnaire.limit_sales_channels, e.target.checked, channel.identifier)"
|
||||
:disabled="questionnaire.all_sales_channels">
|
||||
{{ i18n_any(channel.label) }}
|
||||
</label>
|
||||
@@ -63,7 +63,7 @@ const props = defineProps<{
|
||||
<div class="category-header">{{ category.internal_name || i18n_any(category.name) }}</div>
|
||||
<div class="checkbox" v-for="item in items">
|
||||
<label :for="id + '_' + item.id">
|
||||
<input :id="id + '_' + item.id" type="checkbox" :checked="questionnaire.items.indexOf(item.id) !== -1" @change="e => setListState(questionnaire.items, item.id, e.target.checked)"> {{ item.internal_name || i18n_any(item.name) }}
|
||||
<input :id="id + '_' + item.id" type="checkbox" :checked="questionnaire.items.indexOf(item.id) !== -1" @change="e => setListState(questionnaire.items, e.target.checked, item.id)"> {{ item.internal_name || i18n_any(item.name) }}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user