mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-02 16:46:56 +00:00
Nc fix/integration minor changes (#9184)
* fix(nc-gui): reduce font weight of connection name col cell * fix(nc-gui): show spinner in edit source modal while loading integration * fix(nc-gui): show loading spinner in create source, create/edit connection modal * fix(nc-gui): monor changes * chore(nc-gui): lint * fix(nc-gui): remove extra integration pagemode check condition * fix(nc-gui): update ds test case * feat(nc-gui): add AI integration category * fix: move syncDataType and IntegrationCategoryType enum to noco-sdk * fix(nc-gui): cleanup unused code * fix(nc-gui): integration list modal open issue from create source modal * chore(nc-gui): lint * fix(nc-gui): prevent unnecessarily load integration api calls * fix(nc-gui): handle reset integration data on base change * fix(nc-gui): add missing sync pr changes
This commit is contained in:
@@ -50,6 +50,8 @@ const easterEggCount = ref(0)
|
||||
|
||||
const advancedOptionsExpansionPanel = ref<string[]>([])
|
||||
|
||||
const isLoading = ref<boolean>(false)
|
||||
|
||||
const onEasterEgg = () => {
|
||||
easterEggCount.value += 1
|
||||
if (easterEggCount.value >= 2) {
|
||||
@@ -277,7 +279,12 @@ watch(
|
||||
|
||||
// load source config
|
||||
onMounted(async () => {
|
||||
await loadIntegrations(true, base.value?.id)
|
||||
isLoading.value = true
|
||||
|
||||
if (!integrations.value.length) {
|
||||
await loadIntegrations(true, base.value?.id)
|
||||
}
|
||||
|
||||
if (base.value?.id) {
|
||||
const definedParameters = ['host', 'port', 'user', 'password', 'database']
|
||||
|
||||
@@ -302,6 +309,8 @@ onMounted(async () => {
|
||||
}
|
||||
updateSSLUse()
|
||||
}
|
||||
|
||||
isLoading.value = false
|
||||
})
|
||||
|
||||
// if searchPath is null/undefined reset it to empty array when necessary
|
||||
@@ -369,7 +378,7 @@ function handleAutoScroll(scroll: boolean, className: string) {
|
||||
<template>
|
||||
<div class="edit-source bg-white relative h-full flex flex-col w-full">
|
||||
<div class="h-full max-h-[calc(100%_-_65px)] flex">
|
||||
<div class="nc-edit-source-left-panel nc-scrollbar-thin">
|
||||
<div class="nc-edit-source-left-panel nc-scrollbar-thin relative">
|
||||
<div class="h-full max-w-[768px] mx-auto">
|
||||
<a-form
|
||||
ref="form"
|
||||
@@ -582,6 +591,11 @@ function handleAutoScroll(scroll: boolean, className: string) {
|
||||
</div>
|
||||
</a-form>
|
||||
</div>
|
||||
<general-overlay :model-value="isLoading" inline transition class="!bg-opacity-15">
|
||||
<div class="flex items-center justify-center h-full w-full !bg-white !bg-opacity-85 z-1000">
|
||||
<a-spin size="large" />
|
||||
</div>
|
||||
</general-overlay>
|
||||
</div>
|
||||
<div class="nc-edit-source-right-panel">
|
||||
<DashboardSettingsDataSourcesSupportedDocs />
|
||||
@@ -608,6 +622,7 @@ function handleAutoScroll(scroll: boolean, className: string) {
|
||||
class="nc-extdb-btn-test-connection"
|
||||
:class="{ 'pointer-events-none': testSuccess }"
|
||||
:loading="testingConnection"
|
||||
:disabled="isLoading"
|
||||
icon-position="right"
|
||||
@click="testConnection"
|
||||
>
|
||||
@@ -625,7 +640,7 @@ function handleAutoScroll(scroll: boolean, className: string) {
|
||||
<NcButton
|
||||
size="small"
|
||||
type="primary"
|
||||
:disabled="!testSuccess"
|
||||
:disabled="!testSuccess || isLoading"
|
||||
:loading="editingSource"
|
||||
class="nc-extdb-btn-submit"
|
||||
@click="editBase"
|
||||
|
||||
Reference in New Issue
Block a user