|
|
@ -200,7 +200,7 @@ |
|
|
|
<div class="d-flex"> |
|
|
|
<div class="d-flex"> |
|
|
|
<v-spacer /> |
|
|
|
<v-spacer /> |
|
|
|
|
|
|
|
|
|
|
|
<v-tooltip bottom> |
|
|
|
<!-- <v-tooltip bottom>--> |
|
|
|
<!-- template #activator="{on}"> |
|
|
|
<!-- template #activator="{on}"> |
|
|
|
<v-alert |
|
|
|
<v-alert |
|
|
|
v-if="isNewOrDeletedModelFound" |
|
|
|
v-if="isNewOrDeletedModelFound" |
|
|
@ -232,35 +232,32 @@ |
|
|
|
Metadata for API creation & management isn't sync with |
|
|
|
Metadata for API creation & management isn't sync with |
|
|
|
'{{ dbAliasList[dbsTab].connection.database }}' Database. |
|
|
|
'{{ dbAliasList[dbsTab].connection.database }}' Database. |
|
|
|
</template--> |
|
|
|
</template--> |
|
|
|
</v-tooltip> |
|
|
|
<!-- </v-tooltip>--> |
|
|
|
<v-spacer /> |
|
|
|
<v-spacer /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- <div--> |
|
|
|
<!-- <div--> |
|
|
|
<!-- v-if="isNewOrDeletedModelFound" --> |
|
|
|
<!-- v-if="isNewOrDeletedModelFound" --> |
|
|
|
<div class="d-flex justify-center"> |
|
|
|
<div class="d-flex justify-center"> |
|
|
|
<!-- <x-btn |
|
|
|
<v-btn |
|
|
|
|
|
|
|
v-if="isChanged" |
|
|
|
x-large |
|
|
|
x-large |
|
|
|
btn.class="mx-auto primary nc-btn-sync-meta-data" |
|
|
|
class="mx-auto primary nc-btn-metasync-sync-now" |
|
|
|
tooltip="Sync metadata" |
|
|
|
@click="syncMetaDiff" |
|
|
|
@click="syncMetadata" |
|
|
|
|
|
|
|
> |
|
|
|
> |
|
|
|
<v-icon color="white" class="mr-2 mt-n1"> |
|
|
|
<v-icon color="white" class="mr-2 mt-n1"> |
|
|
|
mdi-database-sync |
|
|
|
mdi-database-sync |
|
|
|
</v-icon> |
|
|
|
</v-icon> |
|
|
|
Sync Now |
|
|
|
Sync Now |
|
|
|
</x-btn>--> |
|
|
|
</v-btn> |
|
|
|
|
|
|
|
|
|
|
|
<x-btn |
|
|
|
<v-alert |
|
|
|
x-large |
|
|
|
v-else |
|
|
|
btn.class="mx-auto primary nc-btn-metasync-sync-now" |
|
|
|
dense |
|
|
|
tooltip="Sync metadata" |
|
|
|
outlined |
|
|
|
@click="syncMetaDiff" |
|
|
|
type="success" |
|
|
|
> |
|
|
|
> |
|
|
|
<v-icon color="white" class="mr-2 mt-n1"> |
|
|
|
Tables metadata is in sync |
|
|
|
mdi-database-sync |
|
|
|
</v-alert> |
|
|
|
</v-icon> |
|
|
|
|
|
|
|
Sync Now |
|
|
|
|
|
|
|
</x-btn> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</v-col> |
|
|
|
</v-col> |
|
|
|
</v-row> |
|
|
|
</v-row> |
|
|
@ -270,17 +267,12 @@ |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import { mapGetters } from 'vuex' |
|
|
|
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' |
|
|
|
import viewIcons from '~/helpers/viewIcons' |
|
|
|
|
|
|
|
import XBtn from '~/components/global/xBtn' |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
export default { |
|
|
|
name: 'DisableOrEnableTables', |
|
|
|
name: 'DisableOrEnableTables', |
|
|
|
components: { |
|
|
|
components: { XBtn }, |
|
|
|
XBtn, |
|
|
|
|
|
|
|
XIcon |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
props: ['nodes', 'db'], |
|
|
|
props: ['nodes', 'db'], |
|
|
|
data: () => ({ |
|
|
|
data: () => ({ |
|
|
|
viewIcons, |
|
|
|
viewIcons, |
|
|
@ -425,6 +417,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'] || '' |
|
|
|
} |
|
|
|
} |
|
|
|