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:
@@ -17,7 +17,7 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import type { IVersionNode, SimplifiedNodeType } from '@/Interface';
|
||||
import { useRootStore } from '@/stores/n8nRoot.store';
|
||||
import { useRootStore } from '@/stores/root.store';
|
||||
import { useUIStore } from '@/stores/ui.store';
|
||||
import {
|
||||
getBadgeIconUrl,
|
||||
@@ -84,7 +84,7 @@ const color = computed(() => getNodeIconColor(props.nodeType) ?? props.colorDefa
|
||||
|
||||
const iconSource = computed<NodeIconSource>(() => {
|
||||
const nodeType = props.nodeType;
|
||||
const baseUrl = rootStore.getBaseUrl;
|
||||
const baseUrl = rootStore.baseUrl;
|
||||
|
||||
if (nodeType) {
|
||||
// If node type has icon data, use it
|
||||
@@ -122,7 +122,7 @@ const badge = computed(() => {
|
||||
if (nodeType && 'badgeIconUrl' in nodeType && nodeType.badgeIconUrl) {
|
||||
return {
|
||||
type: 'file',
|
||||
src: rootStore.getBaseUrl + getBadgeIconUrl(nodeType, uiStore.appliedTheme),
|
||||
src: rootStore.baseUrl + getBadgeIconUrl(nodeType, uiStore.appliedTheme),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user