refactor: Fix Enteprise type errors (#9442)

This commit is contained in:
Mutasem Aldmour
2024-05-17 13:58:26 +02:00
committed by GitHub
parent feba07ba8b
commit b2c17034c2
10 changed files with 75 additions and 39 deletions

View File

@@ -9,11 +9,16 @@ import {
getNodeAuthOptions,
isAuthRelatedParameter,
} from '@/utils/nodeTypesUtils';
import type { INodeProperties, INodeTypeDescription, NodeParameterValue } from 'n8n-workflow';
import type {
ICredentialType,
INodeProperties,
INodeTypeDescription,
NodeParameterValue,
} from 'n8n-workflow';
import { computed, onMounted, ref } from 'vue';
export interface Props {
credentialType: object;
credentialType: ICredentialType;
}
const emit = defineEmits<{

View File

@@ -142,7 +142,7 @@ import { defineComponent } from 'vue';
import type { PropType } from 'vue';
import { mapStores } from 'pinia';
import type { ICredentialType, INodeTypeDescription } from 'n8n-workflow';
import type { ICredentialType, INodeProperties, INodeTypeDescription } from 'n8n-workflow';
import { getAppNameFromCredType, isCommunityPackageName } from '@/utils/nodeTypesUtils';
import Banner from '../Banner.vue';
@@ -177,13 +177,15 @@ export default defineComponent({
},
props: {
credentialType: {
type: Object,
type: Object as PropType<ICredentialType>,
required: true,
},
credentialProperties: {
type: Array,
type: Array as PropType<INodeProperties[]>,
required: true,
},
parentTypes: {
type: Array,
type: Array as PropType<string[]>,
},
credentialData: {},
credentialId: {

View File

@@ -60,7 +60,11 @@
@select="onTabSelect"
></n8n-menu>
</div>
<div v-if="activeTab === 'connection'" ref="content" :class="$style.mainContent">
<div
v-if="activeTab === 'connection' && credentialType"
ref="content"
:class="$style.mainContent"
>
<CredentialConfig
:credential-type="credentialType"
:credential-properties="credentialProperties"