Skip to content

Commit

Permalink
feat: display boolean with checkbox in list #172
Browse files Browse the repository at this point in the history
  • Loading branch information
wazolab committed Mar 5, 2024
1 parent f4e4a63 commit eb5c433
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions components/Fields/Field.vue
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ export default defineNuxtComponent({
>
<ExternalLink :href="item">
{{ context !== 'label_list' ? item : '' }}
<br>
</ExternalLink>
</div>

Expand All @@ -242,6 +243,7 @@ export default defineNuxtComponent({
>
<ExternalLink :href="`mailto:${item}`" icon="envelope">
{{ context !== 'label_list' ? item : '' }}
<br>
</ExternalLink>
</div>

Expand Down Expand Up @@ -301,6 +303,14 @@ export default defineNuxtComponent({
:tag-key="field.field"
/>

<span v-else-if="['wheelchair', 'internet_access', 'toilets:handwashing', 'changing_table', 'supervised', 'male', 'female', 'unisex'].includes(field.field) && context === 'label_list'">
<VCheckbox
:disabled="true"
:model-value="properties[field.field]"
:value="properties[field.field]"
/>
</span>

<span v-else>
{{ propTranslateV(field.field) }}
</span>
Expand Down

0 comments on commit eb5c433

Please sign in to comment.