mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 09:27:19 +00:00
refactor: show alert if there is no meta change
Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
@@ -200,8 +200,8 @@
|
||||
<div class="d-flex">
|
||||
<v-spacer />
|
||||
|
||||
<v-tooltip bottom>
|
||||
<!-- template #activator="{on}">
|
||||
<!-- <v-tooltip bottom>-->
|
||||
<!-- template #activator="{on}">
|
||||
<v-alert
|
||||
v-if="isNewOrDeletedModelFound"
|
||||
dense
|
||||
@@ -232,7 +232,7 @@
|
||||
Metadata for API creation & management isn't sync with
|
||||
'{{ dbAliasList[dbsTab].connection.database }}' Database.
|
||||
</template-->
|
||||
</v-tooltip>
|
||||
<!-- </v-tooltip>-->
|
||||
<v-spacer />
|
||||
</div>
|
||||
<!-- <div-->
|
||||
@@ -249,19 +249,41 @@
|
||||
</v-icon>
|
||||
Sync Now
|
||||
</x-btn>-->
|
||||
<v-tooltip bottom>
|
||||
<template #activator="{on}">
|
||||
<x-btn
|
||||
v-if="isChanged"
|
||||
x-large
|
||||
btn.class="mx-auto primary nc-btn-metasync-sync-now"
|
||||
@click="syncMetaDiff"
|
||||
v-on="on"
|
||||
>
|
||||
<v-icon color="white" class="mr-2 mt-n1">
|
||||
mdi-database-sync
|
||||
</v-icon>
|
||||
Sync Now
|
||||
</x-btn>
|
||||
|
||||
<x-btn
|
||||
v-if="isChanged"
|
||||
x-large
|
||||
btn.class="mx-auto primary nc-btn-metasync-sync-now"
|
||||
tooltip="Sync metadata"
|
||||
@click="syncMetaDiff"
|
||||
>
|
||||
<v-icon color="white" class="mr-2 mt-n1">
|
||||
mdi-database-sync
|
||||
</v-icon>
|
||||
Sync Now
|
||||
</x-btn>
|
||||
<v-alert
|
||||
v-else
|
||||
dense
|
||||
outlined
|
||||
type="success"
|
||||
v-on="on"
|
||||
>
|
||||
Tables metadata is in sync
|
||||
</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>
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
Reference in New Issue
Block a user