Skip to content

Commit

Permalink
nits #147
Browse files Browse the repository at this point in the history
  • Loading branch information
johnatawnclementawn committed Jan 3, 2025
1 parent 031515b commit 1a731a6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
19 changes: 14 additions & 5 deletions arches_lingo/src/arches_lingo/components/generic/LabelEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,20 @@ const metatypeOptions = ref<ControlledListItem[]>([]);
const eventTypeOptions = ref<ControlledListItem[]>([]);
onMounted(async () => {
languageOptions.value = await getOptions(LANGUAGE_CONTROLLED_LIST);
typeOptions.value = await getOptions(LABEL_CONTROLLED_LIST);
statusOptions.value = await getOptions(STATUSES_CONTROLLED_LIST);
metatypeOptions.value = await getOptions(METATYPES_CONTROLLED_LIST);
eventTypeOptions.value = await getOptions(EVENT_TYPES_CONTROLLED_LIST);
const [languageOpts, typeOpts, statusOpts, metatypeOpts, eventTypeOpts] =
await Promise.all([
getOptions(LANGUAGE_CONTROLLED_LIST),
getOptions(LABEL_CONTROLLED_LIST),
getOptions(STATUSES_CONTROLLED_LIST),
getOptions(METATYPES_CONTROLLED_LIST),
getOptions(EVENT_TYPES_CONTROLLED_LIST),
]);
languageOptions.value = languageOpts;
typeOptions.value = typeOpts;
statusOptions.value = statusOpts;
metatypeOptions.value = metatypeOpts;
eventTypeOptions.value = eventTypeOpts;
});
</script>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ defineProps<{
multiValue?: boolean;
options?: ControlledListItem[];
}>();
const emits = defineEmits(["update"]);
const emit = defineEmits(["update"]);
const onUpdate = (val: ControlledListItem[]) => {
emits("update", val);
emit("update", val);
};
</script>
<template>
Expand Down

0 comments on commit 1a731a6

Please sign in to comment.