diff --git a/app/src/interfaces/checkboxes/checkboxes.vue b/app/src/interfaces/checkboxes/checkboxes.vue
index 0d2720f95c..e078729956 100644
--- a/app/src/interfaces/checkboxes/checkboxes.vue
+++ b/app/src/interfaces/checkboxes/checkboxes.vue
@@ -22,13 +22,12 @@
:input-value="value || []"
@change="$emit('input', $event)"
/>
-
-
+ >
props.choices.length > props.itemsShown)
+ const hideChoices = computed(() => props.choices.length > props.itemsShown);
const choicesDisplayed = computed(() => {
- if(showAll.value || hideChoices.value === false) {
- return props.choices
+ if (showAll.value || hideChoices.value === false) {
+ return props.choices;
}
- return props.choices.slice(0, props.itemsShown)
- })
+ return props.choices.slice(0, props.itemsShown);
+ });
- const hiddenCount = computed(() => props.choices.length - props.itemsShown)
+ const hiddenCount = computed(() => props.choices.length - props.itemsShown);
const gridClass = computed(() => {
if (choices.value === null) return null;
@@ -146,34 +145,46 @@ export default defineComponent({
const { otherValues, addOtherValue, setOtherValue } = useCustomSelectionMultiple(value, choices, emit);
- return { gridClass, otherValues, addOtherValue, setOtherValue, choicesDisplayed, hideChoices, showAll, hiddenCount };
+ return {
+ gridClass,
+ otherValues,
+ addOtherValue,
+ setOtherValue,
+ choicesDisplayed,
+ hideChoices,
+ showAll,
+ hiddenCount,
+ };
},
});