Browse Source

refactor: remove tooltip for meta sync button

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/1050/head
Pranav C 3 years ago
parent
commit
c7067435d9
  1. 34
      packages/nc-gui/components/project/projectMetadata/sync/disableOrEnableTables.vue

34
packages/nc-gui/components/project/projectMetadata/sync/disableOrEnableTables.vue

@ -238,52 +238,26 @@
<!-- <div--> <!-- <div-->
<!-- v-if="isNewOrDeletedModelFound" --> <!-- v-if="isNewOrDeletedModelFound" -->
<div class="d-flex justify-center"> <div class="d-flex justify-center">
<!-- <x-btn <v-btn
x-large
btn.class="mx-auto primary nc-btn-sync-meta-data"
tooltip="Sync metadata"
@click="syncMetadata"
>
<v-icon color="white" class="mr-2 mt-n1">
mdi-database-sync
</v-icon>
Sync Now
</x-btn>-->
<v-tooltip bottom>
<template #activator="{on}">
<x-btn
v-if="isChanged" v-if="isChanged"
x-large x-large
btn.class="mx-auto primary nc-btn-metasync-sync-now" class="mx-auto primary nc-btn-metasync-sync-now"
@click="syncMetaDiff" @click="syncMetaDiff"
v-on="on"
> >
<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>
<v-alert <v-alert
v-else v-else
dense dense
outlined outlined
type="success" type="success"
v-on="on"
> >
Tables metadata is in sync Tables metadata is in sync
</v-alert> </v-alert>
</template>
<template v-if="!isChanged">
Metadata for API creation & management is in sync with
'{{ dbAliasList[dbsTab].connection.database }}' Database.
</template>
<template-- v-else>
Metadata for API creation & management isn't sync with
'{{ dbAliasList[dbsTab].connection.database }}' Database.
</template-->
</v-tooltip>
</div> </div>
</v-col> </v-col>
</v-row> </v-row>
@ -294,9 +268,11 @@
<script> <script>
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
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: { XBtn },
props: ['nodes', 'db'], props: ['nodes', 'db'],
data: () => ({ data: () => ({
viewIcons, viewIcons,

Loading…
Cancel
Save