diff --git a/packages/editor-ui/src/utils/typeGuards.ts b/packages/editor-ui/src/utils/typeGuards.ts index 9cff433220..7fa3ff2b5a 100644 --- a/packages/editor-ui/src/utils/typeGuards.ts +++ b/packages/editor-ui/src/utils/typeGuards.ts @@ -8,6 +8,7 @@ import { nodeConnectionTypes } from 'n8n-workflow'; import type { IExecutionResponse, ICredentialsResponse, NewCredentialsModal } from '@/Interface'; import type { jsPlumbDOMElement } from '@jsplumb/browser-ui'; import type { Connection } from '@jsplumb/core'; +import type { RouteLocationRaw } from 'vue-router'; /* Type guards used in editor-ui project @@ -79,3 +80,10 @@ export function isFullExecutionResponse( ): execution is IExecutionResponse { return !!execution && 'status' in execution; } + +export function isRouteLocationRaw(value: unknown): value is RouteLocationRaw { + return ( + typeof value === 'string' || + (typeof value === 'object' && value !== null && ('name' in value || 'path' in value)) + ); +} diff --git a/packages/editor-ui/src/views/SettingsView.vue b/packages/editor-ui/src/views/SettingsView.vue index 00214271f5..3813d2cd91 100644 --- a/packages/editor-ui/src/views/SettingsView.vue +++ b/packages/editor-ui/src/views/SettingsView.vue @@ -1,3 +1,26 @@ + + - -