refactor(editor): Migrate n8nRootStore to use composition API (no-changelog) (#9770)

This commit is contained in:
Ricardo Espinoza
2024-06-18 10:15:12 -07:00
committed by GitHub
parent 653953e2bd
commit 41e06be6fd
83 changed files with 486 additions and 410 deletions

View File

@@ -45,7 +45,7 @@ import { type StyleValue, defineComponent, type PropType } from 'vue';
import type { ITemplatesNode } from '@/Interface';
import type { INodeTypeDescription } from 'n8n-workflow';
import { mapStores } from 'pinia';
import { useRootStore } from '@/stores/n8nRoot.store';
import { useRootStore } from '@/stores/root.store';
interface NodeIconData {
type: string;
@@ -124,7 +124,7 @@ export default defineComponent({
return (nodeType as ITemplatesNode).iconData;
}
const restUrl = this.rootStore.getRestUrl;
const restUrl = this.rootStore.restUrl;
if (typeof nodeType.icon === 'string') {
const [type, path] = nodeType.icon.split(':');