Browse Source

test: metadata vue-3 cypress markers

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/2888/head
Raju Udava 2 years ago
parent
commit
ecbcfbdbcc
  1. 9
      packages/nc-gui-v2/components/dashboard/settings/Metadata.vue

9
packages/nc-gui-v2/components/dashboard/settings/Metadata.vue

@ -79,7 +79,7 @@ const columns = [
<div class="flex flex-row w-full"> <div class="flex flex-row w-full">
<div class="flex flex-column w-3/5"> <div class="flex flex-column w-3/5">
<div class="flex flex-row justify-end items-center w-full mb-4"> <div class="flex flex-row justify-end items-center w-full mb-4">
<a-button class="self-start" @click="loadMetaDiff"> <a-button class="self-start nc-btn-metasync-reload" @click="loadMetaDiff">
<div class="flex items-center gap-2 text-gray-600 font-light"> <div class="flex items-center gap-2 text-gray-600 font-light">
<MdiReload :class="{ 'animate-infinite animate-spin !text-success': isLoading }" /> <MdiReload :class="{ 'animate-infinite animate-spin !text-success': isLoading }" />
Reload Reload
@ -88,6 +88,11 @@ const columns = [
</div> </div>
<a-table <a-table
class="w-full" class="w-full"
:customRow="
(record) => ({
class: `nc-metasync-row nc-metasync-row-${record.title}`,
})
"
:data-source="metadiff ?? []" :data-source="metadiff ?? []"
:columns="columns" :columns="columns"
:pagination="false" :pagination="false"
@ -97,7 +102,7 @@ const columns = [
</div> </div>
<div class="flex place-content-center w-2/5"> <div class="flex place-content-center w-2/5">
<div v-if="isDifferent"> <div v-if="isDifferent">
<a-button v-t="['a:proj-meta:meta-data:sync']" type="primary" @click="syncMetaDiff"> <a-button v-t="['a:proj-meta:meta-data:sync']" class="nc-btn-metasync-sync-now" type="primary" @click="syncMetaDiff">
<div class="flex items-center gap-2"> <div class="flex items-center gap-2">
<MdiDatabaseSync /> <MdiDatabaseSync />
Sync Now Sync Now

Loading…
Cancel
Save