From a8c6b6f63820d68d96dcb03e5a37858f02c8884d Mon Sep 17 00:00:00 2001 From: wbuezas Date: Thu, 14 Dec 2023 08:46:17 -0300 Subject: [PATCH] Update input select create --- src/components/common/VnSelectCreate.vue | 28 ++++++++++-------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/src/components/common/VnSelectCreate.vue b/src/components/common/VnSelectCreate.vue index bb4465fa5..867c97135 100644 --- a/src/components/common/VnSelectCreate.vue +++ b/src/components/common/VnSelectCreate.vue @@ -27,7 +27,7 @@ const $props = defineProps({ }); const role = useRole(); -const popup = ref(null); +const showForm = ref(false); const value = computed({ get() { @@ -38,35 +38,31 @@ const value = computed({ }, }); -const isDeliveryAssistant = computed(() => { +const isAllowedToCreate = computed(() => { return role.hasAny($props.rolesAllowedToCreate); }); -const openCreateForm = () => { - popup.value.show(); +const toggleForm = () => { + showForm.value = !showForm.value; };