chore: preps (#9994)

* chore: preps

Signed-off-by: mertmit <mertmit99@gmail.com>

* test: fix unit

Signed-off-by: mertmit <mertmit99@gmail.com>

---------

Signed-off-by: mertmit <mertmit99@gmail.com>
This commit is contained in:
Mert E.
2024-12-09 11:15:36 +03:00
committed by GitHub
parent f4d27c01dd
commit 818d9344e9
72 changed files with 1636 additions and 278 deletions

View File

@@ -1,5 +1,5 @@
<script lang="ts" setup>
import { IntegrationCategoryType, type SyncDataType } from '#imports'
import type { IntegrationCategoryType, SyncDataType } from '#imports'
import { clientTypes as _clientTypes } from '#imports'
const props = defineProps<{
@@ -22,8 +22,6 @@ const {
updateIntegration,
} = useIntegrationStore()
const { loadAiIntegrations } = useNocoAi()
const isEditMode = computed(() => pageMode.value === IntegrationsPageMode.EDIT)
const initState = ref({
@@ -43,10 +41,6 @@ const { form, formState, isLoading, initialState, submit } = useProvideFormBuild
try {
if (pageMode.value === IntegrationsPageMode.ADD) {
await saveIntegration(formState.value)
if (props.integrationType === IntegrationCategoryType.AI) {
loadAiIntegrations()
}
} else {
await updateIntegration({
id: activeIntegration.value?.id,