Browse Source

fix: some issues

pull/6585/head
DarkPhoenix2704 1 year ago
parent
commit
85ea35aed4
  1. 5
      packages/nc-gui/components/dashboard/settings/DataSources.vue

5
packages/nc-gui/components/dashboard/settings/DataSources.vue

@ -88,10 +88,10 @@ const deleteBase = async () => {
} catch (e: any) {
message.error(await extractSdkResponseErrorMsg(e))
} finally {
//
refreshCommandPalette()
}
}
const toggleBase = async (source: BaseType, state: boolean) => {
try {
if (!state && sources.value.filter((src) => src.enabled).length < 2) {
@ -138,7 +138,7 @@ const moveBase = async (e: any) => {
} catch (e: any) {
message.error(await extractSdkResponseErrorMsg(e))
} finally {
refreshCommandPalette()
await refreshCommandPalette()
}
}
@ -216,6 +216,7 @@ watch(
}
break
}
refreshCommandPalette()
},
{ immediate: true },
)

Loading…
Cancel
Save