UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

2 lines 2.56 kB
(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`n8n@2.16.1`}}catch{}})();try{(function(){var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`94854ed1-5723-4929-9040-d778b8b7cb2e`,e._sentryDebugIdIdentifier=`sentry-dbid-94854ed1-5723-4929-9040-d778b8b7cb2e`)})()}catch{}import{$ as e,A as t,E as n,N as r,S as i,Sn as a,T as o,Wt as s,_n as c,j as l,yt as u}from"./vue.runtime.esm-bundler-C3C09Zii.js";import{at as d}from"./core-Bz5WjPxS.js";import{Ji as f,Xi as p,Zi as m,ct as h,lt as g}from"./src-XqE2yCpG.js";import{t as _}from"./_plugin-vue_export-helper-CIL7EULb.js";import{r as v,s as y}from"./users.store-xP93bV7X.js";import{Qo as b}from"./constants-DuQbSl-q.js";import{t as x}from"./useInjectWorkflowId-BV3E4pXM.js";import{t as S}from"./WorkflowExecutionsInfoAccordion-YeKG277r.js";var C={key:0,"data-test-id":`workflow-execution-no-trigger-content`},w={key:1,"data-test-id":`workflow-execution-no-content`},T=_(r({__name:`WorkflowExecutionsLandingPage`,setup(r){let _=g(),T=h(),E=d(),D=x(),O=v(),k=y(),A=i(()=>k.currentWorkflowExecutions.length),j=i(()=>k.workflowTriggerNodes.length>0);function M(){let e=D.value||T.params.name;O.addFirstStepOnLoad=!0,_.push({name:b.WORKFLOW,params:{name:e},query:{...T.query}})}return(r,i)=>(e(),n(`div`,{class:c([`workflow-executions-container`,r.$style.container])},[A.value===0?(e(),n(`div`,{key:0,class:c([r.$style.messageContainer,r.$style.noExecutionsMessage])},[j.value?(e(),n(`div`,w,[l(s(f),{tag:`h2`,size:`xlarge`,color:`text-dark`,class:`mb-2xs`},{default:u(()=>[t(a(s(E).baseText(`executionsLandingPage.emptyState.heading`)),1)]),_:1}),l(S)])):(e(),n(`div`,C,[l(s(f),{tag:`h2`,size:`xlarge`,color:`text-dark`,class:`mb-2xs`},{default:u(()=>[t(a(s(E).baseText(`executionsLandingPage.emptyState.noTrigger.heading`)),1)]),_:1}),l(s(p),{size:`medium`},{default:u(()=>[t(a(s(E).baseText(`executionsLandingPage.emptyState.message`)),1)]),_:1}),l(s(m),{variant:`subtle`,class:`mt-l`,size:`large`,onClick:M},{default:u(()=>[t(a(s(E).baseText(`executionsLandingPage.emptyState.noTrigger.buttonText`)),1)]),_:1})]))],2)):o(``,!0)],2))}}),[[`__cssModules`,{$style:{container:`_container_81587_125`,messageContainer:`_messageContainer_81587_135`,icon:`_icon_81587_146`}}]]);export{T as default}; //# sourceMappingURL=WorkflowExecutionsLandingPage-BX5-CVzv.js.map