From 074fd0c62a3cdf1b9455c9c79be4c4414c7704cc Mon Sep 17 00:00:00 2001 From: Pranav C Date: Wed, 1 Feb 2023 23:47:17 +0530 Subject: [PATCH] fix(gui): show multiselect in form view Signed-off-by: Pranav C --- packages/nc-gui/components/cell/MultiSelect.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui/components/cell/MultiSelect.vue b/packages/nc-gui/components/cell/MultiSelect.vue index ff65104913..0ec3ae35f0 100644 --- a/packages/nc-gui/components/cell/MultiSelect.vue +++ b/packages/nc-gui/components/cell/MultiSelect.vue @@ -47,6 +47,8 @@ const editable = inject(EditModeInj, ref(false)) const isPublic = inject(IsPublicInj, ref(false)) +const isForm = inject(IsFormInj, ref(false)) + const selectedIds = ref([]) const aselect = ref() @@ -88,7 +90,7 @@ const isOptionMissing = computed(() => { const hasEditRoles = computed(() => hasRole('owner', true) || hasRole('creator', true) || hasRole('editor', true)) -const editAllowed = computed(() => hasEditRoles.value && (active.value || editable.value)) +const editAllowed = computed(() => (hasEditRoles.value || isForm.value) && (active.value || editable.value)) const vModel = computed({ get: () => {