mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
refactor(editor): Migrate n8nRootStore to use composition API (no-changelog) (#9770)
This commit is contained in:
@@ -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(':');
|
||||
|
||||
Reference in New Issue
Block a user