feat: Lookup - update meta data structure, Add icon

Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com>
This commit is contained in:
Pranav C
2021-07-26 19:07:26 +05:30
parent c128376257
commit 93da24c163
17 changed files with 262 additions and 214 deletions

View File

@@ -184,7 +184,7 @@
>
<div class="flex-grow-1 h-100" style="overflow-y: auto">
<div ref="table" style="height : calc(100% - 36px); overflow: auto;width:100%">
<v-skeleton-loader v-if="!dataLoaded && (loadingData || loadingMeta)" type="table" />
<v-skeleton-loader v-if="!dataLoaded && (loadingData || loadingData)" type="table" />
<template v-else-if="selectedView && (selectedView.type === 'table' || selectedView.show_as === 'grid' )">
<xc-grid-view
:key="key"
@@ -601,7 +601,9 @@ export default {
async mounted() {
try {
await this.createTableIfNewTable()
this.loadingMeta = true
await this.loadMeta()
this.loadingMeta = false
if (this.relationType === 'hm') {
this.filters.push({
@@ -935,10 +937,13 @@ export default {
if (updateShowFields) {
try {
const qp = JSON.parse(tableMeta.query_params)
this.showFields = qp.showFields ? qp.showFields : this.showFields
this.showFields = qp.showFields || this.showFields
if (col) {
this.$set(this.showFields, col, true)
}
if (this.selectedViewId === tableMeta.id) {
this.columnsWidth = qp.columnsWidth || this.columnsWidth
}
} catch (e) {
}
}