From e708465697b6f02e17de29c662d93a2af10b5d98 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Wed, 1 Feb 2023 15:36:00 +0530 Subject: [PATCH] fix(gui): show pointer for select field if not readonly Signed-off-by: Pranav C --- .../nc-gui/components/cell/MultiSelect.vue | 93 ++++++++++--------- 1 file changed, 51 insertions(+), 42 deletions(-) diff --git a/packages/nc-gui/components/cell/MultiSelect.vue b/packages/nc-gui/components/cell/MultiSelect.vue index 17babf973f..5db588e070 100644 --- a/packages/nc-gui/components/cell/MultiSelect.vue +++ b/packages/nc-gui/components/cell/MultiSelect.vue @@ -114,13 +114,13 @@ const selectedTitles = computed(() => ? typeof modelValue === 'string' ? isMysql(column.value.base_id) ? modelValue.split(',').sort((a, b) => { - const opa = options.value.find((el) => el.title === a) - const opb = options.value.find((el) => el.title === b) - if (opa && opb) { - return opa.order! - opb.order! - } - return 0 - }) + const opa = options.value.find((el) => el.title === a) + const opb = options.value.find((el) => el.title === b) + if (opa && opb) { + return opa.order! - opb.order! + } + return 0 + }) : modelValue.split(',') : modelValue : [], @@ -233,7 +233,7 @@ async function addIfMissingAndSave() { // Mysql escapes single quotes with backslash so we keep quotes but others have to unescaped if (!isMysql(column.value.base_id)) { - updatedColMeta.cdf = updatedColMeta.cdf.replace(/''/g, '\'') + updatedColMeta.cdf = updatedColMeta.cdf.replace(/''/g, "'") } } @@ -276,8 +276,11 @@ const onTagClick = (e: Event, onClose: Function) => { -