@ -223,10 +223,10 @@
: style = "{height:isForm ? '100%' : 'calc(100% - 36px)'}"
: style = "{height:isForm ? '100%' : 'calc(100% - 36px)'}"
style = "overflow: auto;width:100%"
style = "overflow: auto;width:100%"
>
>
< v -skeleton -loader v -if = " ! dataLoaded & & ( loadingData | | loadingData ) | | ! meta " type = "table" / >
< v -skeleton -loader v -if = " ! dataLoaded & & loadingData | | ! meta " type = "table" / >
< template v -else -if = " selectedView & & ( selectedView.type = = = ' table ' | | selectedView.show_as = = = ' grid ' ) " >
< template v -else -if = " selectedView & & ( selectedView.type = = = ' table ' | | selectedView.show_as = = = ' grid ' ) " >
< xc -grid -view
< xc -grid -view
: key = "key"
: key = "key + selectedViewId "
ref = "ncgridview"
ref = "ncgridview"
: relation - type = "relationType"
: relation - type = "relationType"
: columns - width . sync = "columnsWidth"
: columns - width . sync = "columnsWidth"
@ -372,7 +372,7 @@
< / template >
< / template >
Create Automations or API Webhooks
Create Automations or API Webhooks
< / v - t o o l t i p >
< / v - t o o l t i p >
< v -tooltip bottom >
<!-- < v -tooltip bottom >
< template # activator = "{on}" >
< template # activator = "{on}" >
< v -list -item
< v -list -item
v - on = "on"
v - on = "on"
@ -385,7 +385,7 @@
< / v - l i s t - i t e m >
< / v - l i s t - i t e m >
< / template >
< / template >
Create / Edit API Webhooks
Create / Edit API Webhooks
< / v - t o o l t i p >
< / v - t o o l t i p > - - >
< v -list -item
< v -list -item
v - if = "showAdvanceOptions"
v - if = "showAdvanceOptions"
@ click = "showAdditionalFeatOverlay('validators')"
@ click = "showAdditionalFeatOverlay('validators')"
@ -519,7 +519,6 @@
@ prev = "loadPrev"
@ prev = "loadPrev"
/ >
/ >
< / v - d i a l o g >
< / v - d i a l o g >
< additional -features
< additional -features
v - model = "showAddFeatOverlay"
v - model = "showAddFeatOverlay"
: selected - view = "selectedView"
: selected - view = "selectedView"
@ -1016,15 +1015,26 @@ export default {
break
break
}
}
} ,
} ,
async loadMeta ( updateShowFields = true , col ) {
async loadMeta ( updateShowFields = true , col , oldCol ) {
this . loadingMeta = true
/ / u p d a t e c o l u m n n a m e i n c o l u m n m e t a d a t a
if ( oldCol && col ) {
this . $set ( this . columnsWidth , col , this . columnsWidth [ oldCol ] )
this . $set ( this . showFields , col , this . showFields [ oldCol ] )
const i = ( this . fieldsOrder || [ ] ) . indexOf ( oldCol )
if ( i > - 1 ) {
this . $set ( this . fieldsOrder , i , col )
}
}
/ / l o a d l a t e s t t a b l e m e t a
const tableMeta = await this . $store . dispatch ( 'meta/ActLoadMeta' , {
const tableMeta = await this . $store . dispatch ( 'meta/ActLoadMeta' , {
env : this . nodes . env ,
env : this . nodes . env ,
dbAlias : this . nodes . dbAlias ,
dbAlias : this . nodes . dbAlias ,
tn : this . table ,
tn : this . table ,
force : true
force : true
} )
} )
this . loadingMeta = false
/ / u p d a t e c o l u m n v i s i b i l i t y
if ( updateShowFields ) {
if ( updateShowFields ) {
try {
try {
const qp = JSON . parse ( tableMeta . query _params )
const qp = JSON . parse ( tableMeta . query _params )
@ -1082,8 +1092,8 @@ export default {
this . selectedExpandRowIndex = row
this . selectedExpandRowIndex = row
this . selectedExpandRowMeta = rowMeta
this . selectedExpandRowMeta = rowMeta
} ,
} ,
async onNewColCreation ( col ) {
async onNewColCreation ( col , oldCol ) {
await this . loadMeta ( true , col )
await this . loadMeta ( true , col , oldCol )
this . $nextTick ( async ( ) => {
this . $nextTick ( async ( ) => {
await this . loadTableData ( )
await this . loadTableData ( )
/ / t h i s . m a p F i e l d s A n d S h o w F i e l d s ( ) ;
/ / t h i s . m a p F i e l d s A n d S h o w F i e l d s ( ) ;