From 4e5221437fc41cb1ab59bc1457de8aafa42c9e98 Mon Sep 17 00:00:00 2001 From: mertmit Date: Thu, 20 Oct 2022 12:44:10 +0300 Subject: [PATCH] fix: refresh data sources on sync metadata Signed-off-by: mertmit --- packages/nc-gui/components/dashboard/settings/DataSources.vue | 2 +- packages/nc-gui/components/dashboard/settings/Metadata.vue | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui/components/dashboard/settings/DataSources.vue b/packages/nc-gui/components/dashboard/settings/DataSources.vue index 8dc4251e81..57eed782eb 100644 --- a/packages/nc-gui/components/dashboard/settings/DataSources.vue +++ b/packages/nc-gui/components/dashboard/settings/DataSources.vue @@ -326,7 +326,7 @@ watch(
- +
diff --git a/packages/nc-gui/components/dashboard/settings/Metadata.vue b/packages/nc-gui/components/dashboard/settings/Metadata.vue index 092d0c02b9..937559eff7 100644 --- a/packages/nc-gui/components/dashboard/settings/Metadata.vue +++ b/packages/nc-gui/components/dashboard/settings/Metadata.vue @@ -5,6 +5,8 @@ const props = defineProps<{ baseId: string }>() +const emit = defineEmits(['baseSynced']) + const { $api } = useNuxtApp() const { project, loadTables } = useProject() @@ -47,6 +49,7 @@ async function syncMetaDiff() { message.info(t('msg.info.metaDataRecreated')) await loadTables() await loadMetaDiff() + emit('baseSynced') } catch (e: any) { message.error(await extractSdkResponseErrorMsg(e)) } finally {