Browse Source

fix: make it as text when view is locked

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5848/head
Pranav C 1 year ago
parent
commit
181a05f90a
  1. 12
      packages/nc-gui/components/virtual-cell/Links.vue

12
packages/nc-gui/components/virtual-cell/Links.vue

@ -59,19 +59,25 @@ const onAttachRecord = () => {
childListDlg.value = false
listItemsDlg.value = true
}
const openChildList = () => {
if(!isLocked.value)
childListDlg = true
}
</script>
<template>
<div class="flex w-full items-center">
<template v-if="!isForm">
<div class="flex-grow block">
<a
<component
:is="isLocked ? 'span' : 'a'"
class="text-center pl-3 nc-datatype-link"
:class="{ '!text-gray-300': !value }"
@click.stop.prevent="childListDlg = true"
@click.stop.prevent="openChildList"
>
{{ textVal }}
</a>
</component>
</div>
<div v-if="!isLocked && !isUnderLookup" class="flex justify-end gap-1 min-h-[30px] items-center">

Loading…
Cancel
Save