mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor(editor): Migrate versions api to @n8n/rest-client-api (no-changelog) (#16147)
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
<script setup lang="ts">
|
||||
import type { IVersionNode, SimplifiedNodeType } from '@/Interface';
|
||||
import type { SimplifiedNodeType } from '@/Interface';
|
||||
import { getNodeIconSource, type NodeIconSource } from '@/utils/nodeIcon';
|
||||
import { N8nNodeIcon } from '@n8n/design-system';
|
||||
import { computed } from 'vue';
|
||||
import type { VersionNode } from '@n8n/rest-api-client/api/versions';
|
||||
|
||||
type Props = {
|
||||
size?: number;
|
||||
@@ -15,7 +16,7 @@ type Props = {
|
||||
// NodeIcon needs iconSource OR nodeType, would be better with an intersection type
|
||||
// but it breaks Vue template type checking
|
||||
iconSource?: NodeIconSource;
|
||||
nodeType?: SimplifiedNodeType | IVersionNode | null;
|
||||
nodeType?: SimplifiedNodeType | VersionNode | null;
|
||||
};
|
||||
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
|
||||
Reference in New Issue
Block a user