Browse Source

fix(gui): use title for existing table in meta diff

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4630/head
Pranav C 2 years ago
parent
commit
0021e90864
  1. 6
      packages/nc-gui/components/dashboard/settings/Metadata.vue

6
packages/nc-gui/components/dashboard/settings/Metadata.vue

@ -69,9 +69,7 @@ const columns = [
{
// Models
title: tableHeaderRenderer(t('labels.models')),
key: 'table_name',
customRender: ({ record }: { record: { table_name: string; title?: string } }) =>
h('div', {}, record.title || record.table_name),
key: 'table_name'
},
{
// Sync state
@ -122,7 +120,7 @@ const columns = [
<div class="min-w-5 flex items-center justify-center">
<GeneralTableIcon :meta="record" class="text-gray-500"></GeneralTableIcon>
</div>
<span class="overflow-ellipsis min-w-0 shrink-1">{{ record.table_name }}</span>
<span class="overflow-ellipsis min-w-0 shrink-1">{{ record.title || record.table_name }}</span>
</div>
</div>
</template>

Loading…
Cancel
Save