@ -251,6 +251,7 @@
< / x - b t n > - - >
< / x - b t n > - - >
< x -btn
< x -btn
v - if = "isChanged"
x - large
x - large
btn . class = "mx-auto primary nc-btn-metasync-sync-now"
btn . class = "mx-auto primary nc-btn-metasync-sync-now"
tooltip = "Sync metadata"
tooltip = "Sync metadata"
@ -270,17 +271,10 @@
< script >
< script >
import { mapGetters } from 'vuex'
import { mapGetters } from 'vuex'
/ / i m p o r t { i s M e t a T a b l e } f r o m ' @ / h e l p e r s / x u t i l s '
import XIcon from '@/components/global/xIcon'
import XBtn from '@/components/global/xBtn'
import viewIcons from '~/helpers/viewIcons'
import viewIcons from '~/helpers/viewIcons'
export default {
export default {
name : 'DisableOrEnableTables' ,
name : 'DisableOrEnableTables' ,
components : {
XBtn ,
XIcon
} ,
props : [ 'nodes' , 'db' ] ,
props : [ 'nodes' , 'db' ] ,
data : ( ) => ( {
data : ( ) => ( {
viewIcons ,
viewIcons ,
@ -425,6 +419,9 @@ export default {
... mapGetters ( {
... mapGetters ( {
dbAliasList : 'project/GtrDbAliasList'
dbAliasList : 'project/GtrDbAliasList'
} ) ,
} ) ,
isChanged ( ) {
return this . diff && this . diff . some ( d => d && d . detectedChanges && d . detectedChanges . length )
} ,
prefix ( ) {
prefix ( ) {
return this . $store . getters [ 'project/GtrProjectPrefix' ] || ''
return this . $store . getters [ 'project/GtrProjectPrefix' ] || ''
}
}