Browse Source

refactor(gui-v2): show as chip view in bt

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3025/head
Pranav C 2 years ago
parent
commit
af23010eb5
  1. 7
      packages/nc-gui-v2/components/virtual-cell/BelongsTo.vue

7
packages/nc-gui-v2/components/virtual-cell/BelongsTo.vue

@ -31,7 +31,6 @@ await loadRelatedTableMeta()
<template> <template>
<div class="flex w-full chips-wrapper align-center" :class="{ active }"> <div class="flex w-full chips-wrapper align-center" :class="{ active }">
<template v-if="!isForm">
<div class="chips d-flex align-center flex-grow"> <div class="chips d-flex align-center flex-grow">
<template v-if="cellValue"> <template v-if="cellValue">
<ItemChip :item="cellValue" :value="cellValue[relatedTablePrimaryValueProp]" @unlink="unlink(cellValue)" /> <ItemChip :item="cellValue" :value="cellValue[relatedTablePrimaryValueProp]" @unlink="unlink(cellValue)" />
@ -43,11 +42,7 @@ await loadRelatedTableMeta()
@click="listItemsDlg = true" @click="listItemsDlg = true"
/> />
</div> </div>
<ListItems v-model="listItemsDlg" @attach-record=" (listItemsDlg = true)"/>
<ListItems v-model="listItemsDlg" />
</template>
<ListChildItems />
<ListItems v-model="listItemsDlg" @attach-record="listItemsDlg = true"/>
</div> </div>
</template> </template>

Loading…
Cancel
Save