mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 05:06:50 +00:00
fix: handle meta sync properly even if there is no change
- hide meta sync button if there is no change - ignore invoking populate function if there is no change re #1047 Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
@@ -251,6 +251,7 @@
|
||||
</x-btn>-->
|
||||
|
||||
<x-btn
|
||||
v-if="isChanged"
|
||||
x-large
|
||||
btn.class="mx-auto primary nc-btn-metasync-sync-now"
|
||||
tooltip="Sync metadata"
|
||||
@@ -270,17 +271,10 @@
|
||||
|
||||
<script>
|
||||
import { mapGetters } from 'vuex'
|
||||
// import { isMetaTable } from '@/helpers/xutils'
|
||||
import XIcon from '@/components/global/xIcon'
|
||||
import XBtn from '@/components/global/xBtn'
|
||||
import viewIcons from '~/helpers/viewIcons'
|
||||
|
||||
export default {
|
||||
name: 'DisableOrEnableTables',
|
||||
components: {
|
||||
XBtn,
|
||||
XIcon
|
||||
},
|
||||
props: ['nodes', 'db'],
|
||||
data: () => ({
|
||||
viewIcons,
|
||||
@@ -425,6 +419,9 @@ export default {
|
||||
...mapGetters({
|
||||
dbAliasList: 'project/GtrDbAliasList'
|
||||
}),
|
||||
isChanged() {
|
||||
return this.diff && this.diff.some(d => d && d.detectedChanges && d.detectedChanges.length)
|
||||
},
|
||||
prefix() {
|
||||
return this.$store.getters['project/GtrProjectPrefix'] || ''
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user