n8n-editor-ui 1.108.0 → 1.109.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{AddDataStoreModal-CcU8ivRL.js → AddDataStoreModal-DQSrUeGv.js} +27 -10
- package/dist/assets/{AnimatedSpinner-BGiYi74y.js → AnimatedSpinner-DG0OJkY1.js} +1 -1
- package/dist/assets/{AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-B4UDyM0-.js → AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-DL7yrAdr.js} +1 -1
- package/dist/assets/{AuthView-DqXEfmiX.js → AuthView-BjsoW1-5.js} +2 -2
- package/dist/assets/{ChangePasswordView-CgU6Vwxx.js → ChangePasswordView-wL-Pegb8.js} +3 -3
- package/dist/assets/CollectionParameter-CGRCLW5F.js +4 -0
- package/dist/assets/{ConsumedTokensDetails.vue_vue_type_script_setup_true_lang-DqYON-Vj.js → ConsumedTokensDetails.vue_vue_type_script_setup_true_lang-Y9jgPwUm.js} +1 -1
- package/dist/assets/{CredentialsView-COb21gvI.js → CredentialsView-Cp-dKa-6.js} +8 -8
- package/dist/assets/{DataStoreActions.vue_vue_type_script_setup_true_lang-CBAZdMw_.js → DataStoreActions.vue_vue_type_script_setup_true_lang-jUSBJd47.js} +20 -14
- package/dist/assets/{DataStoreDetailsView-B0CKO8ZR.css → DataStoreDetailsView-BxDmY87S.css} +310 -25
- package/dist/assets/{DataStoreDetailsView-DVe4HV2u.js → DataStoreDetailsView-D9YNa5HC.js} +5099 -65
- package/dist/assets/{DataStoreView-tq8qGfA7.js → DataStoreView-Bs-qcZ8z.js} +55 -88
- package/dist/assets/{DataStoreView-D-Wmcgs5.css → DataStoreView-bZrewhaR.css} +10 -15
- package/dist/assets/{DemoFooter-B8DOkf8u.js → DemoFooter-DPTKA9IL.js} +6 -6
- package/dist/assets/{EmptySharedSectionActionBox.vue_vue_type_script_setup_true_lang-FKKhn9iz.js → EmptySharedSectionActionBox.vue_vue_type_script_setup_true_lang-DiIUOGo1.js} +1 -1
- package/dist/assets/{EntityNotFound-C6h0eA_K.js → EntityNotFound-7GWizCKV.js} +1 -1
- package/dist/assets/{EntityUnAuthorised-rxGqHq24.js → EntityUnAuthorised-BGNR4Y6R.js} +1 -1
- package/dist/assets/{ErrorView-CoOS09mT.js → ErrorView-Dbc4jM8G.js} +1 -1
- package/dist/assets/{EvaluationsRootView-CeSn3uw2.js → EvaluationsRootView-bKi3SFkK.js} +1 -1
- package/dist/assets/{EvaluationsView-CVHZUgYg.js → EvaluationsView-URJMmngS.js} +3 -3
- package/dist/assets/{ExecutionsTime.vue_vue_type_script_setup_true_lang-DmgoWpOT.js → ExecutionsTime.vue_vue_type_script_setup_true_lang-C8GA5YsR.js} +2 -2
- package/dist/assets/{ExecutionsView-Ce4DOBay.js → ExecutionsView-C32NF_Mi.js} +8 -8
- package/dist/assets/{FixedCollectionParameter-C_GQZrig.js → FixedCollectionParameter-C32o7Xw1.js} +1 -1
- package/dist/assets/{ForgotMyPasswordView-BxboaIpv.js → ForgotMyPasswordView-BIGcjM0k.js} +3 -3
- package/dist/assets/{InfoAccordion-Bzpvtce8.js → InfoAccordion-DVdDpADr.js} +1 -1
- package/dist/assets/{InsightsChartAverageRuntime-D0-oomYI.js → InsightsChartAverageRuntime-CjOAk50Z.js} +4 -4
- package/dist/assets/{InsightsChartFailed-DVFxva2N.js → InsightsChartFailed-DCQYezXm.js} +4 -4
- package/dist/assets/{InsightsChartFailureRate-B88dWE0m.js → InsightsChartFailureRate-L674yUIQ.js} +4 -4
- package/dist/assets/{InsightsChartTimeSaved-Buc4eI6y.js → InsightsChartTimeSaved-B6a4bv2j.js} +4 -4
- package/dist/assets/{InsightsChartTotal-DXVXOXxC.js → InsightsChartTotal-BGmz_E44.js} +4 -4
- package/dist/assets/{InsightsDashboard-DFVS_OL_.js → InsightsDashboard-CbtPLqME.js} +10 -10
- package/dist/assets/{InsightsPaywall-Km_8K9J2.js → InsightsPaywall-iTfZzLCq.js} +1 -1
- package/dist/assets/{InsightsSummary-DNkZvhPU.js → InsightsSummary-D0XZxoWu.js} +1 -1
- package/dist/assets/{InsightsTableWorkflows-DiN2YxQM.js → InsightsTableWorkflows-DYL5sIeL.js} +13 -11
- package/dist/assets/{Logo-BWRzR7Wn.js → Logo-BF6xE_TK.js} +1 -1
- package/dist/assets/{LogsPanel-myx3jrpV.js → LogsPanel-DhSbCRI8.js} +5 -5
- package/dist/assets/{MainHeader-fMUCh_vG.css → MainHeader-BofAi8wS.css} +42 -42
- package/dist/assets/{MainHeader-DNWdA74A.js → MainHeader-C992btCf.js} +482 -472
- package/dist/assets/{MainSidebar-BmW_mrdS.js → MainSidebar-CfBkhJuz.js} +6 -3
- package/dist/assets/{NodeCreation-BUeUpyyh.js → NodeCreation-C4-JrWkw.js} +3 -3
- package/dist/assets/{NodeCreator-VtJSoJWS.js → NodeCreator-BHFu5J3H.js} +13 -11
- package/dist/assets/{NodeCreator-COgNP4W1.css → NodeCreator-vQ-Sfr_5.css} +8 -9
- package/dist/assets/{NodeDetailsView-DnN_JIq6.js → NodeDetailsView-DucQbxES.js} +13 -13
- package/dist/assets/{NodeDetailsViewV2-C5YSDisg.js → NodeDetailsViewV2-By7jano3.js} +13 -13
- package/dist/assets/{NodeView-EEsI2Qb9.js → NodeView-Bi4OfDJp.js} +15 -11
- package/dist/assets/{ProjectBreadcrumb-KtxdMyZ2.js → ProjectBreadcrumb-l5PnV6Jp.js} +1 -1
- package/dist/assets/{ProjectHeader-CxfMVVpq.js → ProjectHeader-D1veUs2f.js} +16 -19
- package/dist/assets/{ProjectSettings-6Jreo2aL.js → ProjectSettings-CiMu32JB.js} +3 -3
- package/dist/assets/{PushConnectionTracker.vue_vue_type_script_setup_true_lang-se2FA3gE.js → PushConnectionTracker.vue_vue_type_script_setup_true_lang-Cl5RoRJK.js} +1 -1
- package/dist/assets/{ResourcesListLayout-CGEmnTS3.js → ResourcesListLayout-V2ovJZd-.js} +3 -3
- package/dist/assets/{RunDataJson-27e01rbG.js → RunDataJson--o61ywP4.js} +3 -3
- package/dist/assets/{RunDataJsonActions-Pq9pGbtg.js → RunDataJsonActions-BuTnnCdp.js} +1 -1
- package/dist/assets/{RunDataParsedAiContent-ChYdnZoY.js → RunDataParsedAiContent-Dv43fJJj.js} +2 -2
- package/dist/assets/{RunDataSearch-Bao0QTKG.js → RunDataSearch-DhhRomuh.js} +1 -1
- package/dist/assets/{RunDataTable-DDzTJ3JW.js → RunDataTable-BRNjCbjf.js} +1 -1
- package/dist/assets/{SamlOnboarding-BB5uEOiZ.js → SamlOnboarding-ChVfS2ix.js} +3 -3
- package/dist/assets/{SettingsApiView-DZ9pboX5.js → SettingsApiView-EJcHWxis.js} +1 -1
- package/dist/assets/{SettingsCommunityNodesView-BQkRYZ7e.js → SettingsCommunityNodesView-BCGKGJGl.js} +4 -4
- package/dist/assets/{SettingsExternalSecrets-9-qgYZR9.js → SettingsExternalSecrets-DQ6GuwI_.js} +1 -1
- package/dist/assets/{SettingsLdapView-spVmQTIx.js → SettingsLdapView-YMEEL5g4.js} +1 -1
- package/dist/assets/{SettingsLogStreamingView-ddQEmI4T.js → SettingsLogStreamingView-CMRM9qEX.js} +1 -1
- package/dist/assets/{SettingsPersonalView-C8mXyr0Q.js → SettingsPersonalView-CQ3j6jFh.js} +1 -1
- package/dist/assets/{SettingsSourceControl-CVN0s2_s.js → SettingsSourceControl-W3xQHBQs.js} +1 -1
- package/dist/assets/{SettingsSso-DzOZtqbm.js → SettingsSso-B-RJISS8.js} +7 -5
- package/dist/assets/{SettingsUsageAndPlan-PsFfrcUO.js → SettingsUsageAndPlan-BI4z3ArV.js} +1 -1
- package/dist/assets/{SettingsUsersView-GxaXbEvy.js → SettingsUsersView-FdTxfP_9.js} +1 -1
- package/dist/assets/{SettingsView-BCoTKvcx.js → SettingsView-enVRJi4X.js} +1 -1
- package/dist/assets/{SetupView-C06fPC4v.js → SetupView-DhQVRFto.js} +3 -3
- package/dist/assets/{SetupWorkflowCredentialsButton-CCPj0w2n.js → SetupWorkflowCredentialsButton-o-0v9TC0.js} +1 -1
- package/dist/assets/{SetupWorkflowFromTemplateView-Dnr-rj0a.js → SetupWorkflowFromTemplateView-t24Wf8j0.js} +3 -3
- package/dist/assets/{SigninView-Dxq1og5D.js → SigninView-CqnnxcHH.js} +3 -3
- package/dist/assets/{SignoutView-DwF2lrt7.js → SignoutView-BYkRErR0.js} +1 -1
- package/dist/assets/{SignupView-D0gT_70z.js → SignupView-CZ5xz8Ej.js} +3 -3
- package/dist/assets/{TableBase-2nDRjPs3.js → TableBase-DZ3KHAaq.js} +1 -1
- package/dist/assets/{Tag-Tw1H92yc.js → Tag-BZXOdJeY.js} +1 -1
- package/dist/assets/{Tags-CEn7oy-s.js → Tags-BGrNA-zc.js} +2 -2
- package/dist/assets/{TemplateDetails-B1pZ8rnr.js → TemplateDetails-CGeXTU0J.js} +2 -2
- package/dist/assets/{TemplateList-upDgcS5V.js → TemplateList-BUJPQKR1.js} +1 -1
- package/dist/assets/{TemplatesCollectionView-DHHYqexd.js → TemplatesCollectionView-CDz25qgN.js} +7 -7
- package/dist/assets/{TemplatesSearchView-DGylmvaI.js → TemplatesSearchView-l-Ueq6ha.js} +3 -3
- package/dist/assets/{TemplatesView-B6r6jI04.js → TemplatesView-CbzVhmOD.js} +1 -1
- package/dist/assets/{TemplatesWorkflowView-BqG7obFC.js → TemplatesWorkflowView-D2fR5qLE.js} +7 -7
- package/dist/assets/{TriggerPanel-DmVMaaLr.css → TriggerPanel-BFPMKijE.css} +4 -4
- package/dist/assets/{TriggerPanel-Dvg3vyEj.js → TriggerPanel-BNb8Fkp3.js} +20 -9
- package/dist/assets/{VariablesView-CIF4byrk.js → VariablesView-ZO4oTir0.js} +5 -5
- package/dist/assets/{WorkerView-D8GP454l.js → WorkerView-DjYjCGEz.js} +6 -6
- package/dist/assets/{WorkflowActivator-B0pgQoO2.js → WorkflowActivator-CFrLXTxM.js} +3 -3
- package/dist/assets/{WorkflowExecutionsInfoAccordion-BnUikOj6.js → WorkflowExecutionsInfoAccordion-C8Tc4Mno.js} +2 -2
- package/dist/assets/{WorkflowExecutionsLandingPage-D4kNQVnJ.js → WorkflowExecutionsLandingPage-BiuuJ3ll.js} +3 -3
- package/dist/assets/{WorkflowExecutionsPreview-B-sIs_Ug.js → WorkflowExecutionsPreview-CYoDxL8E.js} +4 -4
- package/dist/assets/{WorkflowExecutionsView-DtcP0ex6.js → WorkflowExecutionsView-C78loZuv.js} +7 -7
- package/dist/assets/{WorkflowHistory-Dv2LNjb3.js → WorkflowHistory-CqoFF8_8.js} +3 -3
- package/dist/assets/{WorkflowOnboardingView-CHwiWIpr.js → WorkflowOnboardingView-dpvpoau1.js} +1 -1
- package/dist/assets/{WorkflowPreview-DCXLvUc4.js → WorkflowPreview-83_iB67I.js} +1 -1
- package/dist/assets/{WorkflowsView-Ck9uagLz.js → WorkflowsView-Bhr5Vfcw.js} +13 -13
- package/dist/assets/{canvas-DFP0pMz9.js → canvas-Kg89rGSt.js} +1 -1
- package/dist/assets/{chartjs.utils-Qwffxtza.js → chartjs.utils-6nSeP00a.js} +2 -2
- package/dist/assets/{core-VLDylmke.js → core-BiQ8TPaF.js} +1 -1
- package/dist/assets/{dataStore.store-Daf-vbcV.js → dataStore.store-Bru4R38e.js} +123 -4
- package/dist/assets/{en-BGDurvS-.js → en-CZDXhi4W.js} +29 -22
- package/dist/assets/{global-link-actions-C1gEbCDx.js → global-link-actions-BfwrTt1h.js} +1 -1
- package/dist/assets/{index-C6NR226r.css → index-Am8RmnT4.css} +20 -17
- package/dist/assets/{index-BRttPpfs.js → index-CZxO9Y7t.js} +1 -1
- package/dist/assets/{index-CRQJ7x6N.js → index-V25MIkzH.js} +504 -429
- package/dist/assets/{pickBy-B8xTSNTq.js → pickBy-CInoejW7.js} +1 -1
- package/dist/assets/{readyToRunWorkflows.store-BDC-qUEi.js → readyToRunWorkflows.store-D8qADh9A.js} +1 -1
- package/dist/assets/{templateActions-U_KRhAMr.js → templateActions-CytValxU.js} +1 -1
- package/dist/assets/{useBeforeUnload-B7UlIqac.js → useBeforeUnload-yQFY1z_s.js} +1 -1
- package/dist/assets/{useExecutionDebugging-CTEsfGpb.js → useExecutionDebugging-DiCw9NpL.js} +1 -1
- package/dist/assets/{useImportCurlCommand-vVItCXQc.js → useImportCurlCommand-UhCp_Hxn.js} +10 -3
- package/dist/assets/{useProjectPages-CzVikbfF.js → useProjectPages-DNuz01tw.js} +1 -1
- package/dist/assets/{usePushConnection-CI0nRouW.js → usePushConnection-BOddel3U.js} +3 -3
- package/dist/assets/{useWorkflowActivate-CT-jqMSY.js → useWorkflowActivate-DKZ9PzgK.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/dist/assets/CollectionParameter-DbGwA_bG.js +0 -4
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { d as defineComponent, r as ref, x as computed, e as createBlock, f as createCommentVNode, g as openBlock, l as unref, y as N8nPopoverReka, w as withCtx, j as createBaseVNode, n as normalizeClass, i as createVNode, h as createElementBlock, m as N8nHeading, k as createTextVNode, t as toDisplayString, z as N8nCallout, F as Fragment, A as renderList, B as withModifiers, N as N8nIcon, p as N8nText, C as N8nLink, D as useI18n, _ as _export_sfc, E as ElDropdown, G as N8nAvatar, H as ElDropdownMenu, I as ElDropdownItem, J as N8nUserInfo, K as mergeProps, L as MAIN_HEADER_TABS, O as N8nRadioButtons, P as
|
|
2
|
-
import { _ as __unplugin_components_0, W as WorkflowActivator } from "./WorkflowActivator-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { T as Tag } from "./Tag-
|
|
6
|
-
import { u as usePushConnection } from "./usePushConnection-
|
|
7
|
-
import "./ProjectBreadcrumb-
|
|
8
|
-
import "./useWorkflowActivate-
|
|
9
|
-
import "./global-link-actions-
|
|
10
|
-
import "./readyToRunWorkflows.store-
|
|
1
|
+
import { d as defineComponent, r as ref, x as computed, e as createBlock, f as createCommentVNode, g as openBlock, l as unref, y as N8nPopoverReka, w as withCtx, j as createBaseVNode, n as normalizeClass, i as createVNode, h as createElementBlock, m as N8nHeading, k as createTextVNode, t as toDisplayString, z as N8nCallout, F as Fragment, A as renderList, B as withModifiers, N as N8nIcon, p as N8nText, C as N8nLink, D as useI18n, _ as _export_sfc, E as ElDropdown, G as N8nAvatar, H as ElDropdownMenu, I as ElDropdownItem, J as N8nUserInfo, K as mergeProps, L as MAIN_HEADER_TABS, O as N8nRadioButtons, P as useDebounce, Q as useUIStore, R as BREAKPOINT_SM, S as BREAKPOINT_XL, T as BREAKPOINT_LG, U as BREAKPOINT_MD, o as onMounted, W as onBeforeUnmount, X as renderSlot, Y as nextTick, Z as getBannerRowHeight, $ as defineStore, a0 as usePushConnectionStore, a1 as useWorkflowsStore, u as useUsersStore, a2 as useRoute, a3 as PLACEHOLDER_EMPTY_WORKFLOW_ID, a4 as STORES, a5 as TIME, a6 as useDocumentVisibility, a7 as watch, V as VIEWS, a8 as resolveComponent, a9 as Tooltip, aa as _sfc_main$d, c as useI18n$1, ab as I18nT, b as useRouter, ac as useEvaluationStore, ad as useNodeTypesStore, ae as useWorkflowSettingsCache, af as useSourceControlStore, ag as WORKFLOW_ACTIVE_MODAL_KEY, ah as ERROR_WORKFLOW_DOCS_URL, ai as EVALUATIONS_DOCS_URL, aj as TIME_SAVED_DOCS_URL, ak as WORKFLOW_SETTINGS_MODAL_KEY, al as useTelemetry, am as useMessage, an as MODAL_CONFIRM, ao as debounce, ap as normalizeStyle, aq as createEventBus, ar as useTagsStore, as as useCssModule, at as useRootStore, v as useSettingsStore, au as useProjectsStore, av as useFoldersStore, aw as useNpsSurveyStore, a as useToast, ax as useDocumentTitle, ay as useWorkflowSaving, az as useWorkflowHelpers, aA as usePageRedirectionHelper, aB as getResourcePermissions, aC as WORKFLOW_MENU_ACTIONS, aD as hasPermission, aE as EnterpriseEditionFeature, aF as ProjectTypes, aG as useTemplateRef, aH as InlineRename, aI as MAX_WORKFLOW_NAME_LENGTH, aJ as _sfc_main$e, aK as N8nBadge, q as N8nButton, aL as SaveButton, aM as N8nActionDropdown, aN as WORKFLOW_SHARE_MODAL_KEY, aO as nodeViewEventBus, aP as IMPORT_WORKFLOW_URL_MODAL_KEY, aQ as FileSaver_minExports, aR as DUPLICATE_MODAL_KEY, aS as ResourceType, aT as PROJECT_MOVE_RESOURCE_MODAL, aU as __vitePreload, aV as hyphenate, aW as h, aX as hasOwn, aY as useNDVStore, aZ as useExecutionsStore, a_ as useLocalStorage, a$ as LOCAL_STORAGE_HIDE_GITHUB_STAR_BUTTON, b0 as STICKY_NODE_TYPE, b1 as onBeforeMount, b2 as withDirectives, b3 as vShow, b4 as N8N_MAIN_GITHUB_REPO_URL } from "./index-V25MIkzH.js";
|
|
2
|
+
import { _ as __unplugin_components_0, W as WorkflowActivator } from "./WorkflowActivator-CFrLXTxM.js";
|
|
3
|
+
import { u as useBeforeUnload } from "./useBeforeUnload-yQFY1z_s.js";
|
|
4
|
+
import { _ as _sfc_main$f } from "./PushConnectionTracker.vue_vue_type_script_setup_true_lang-Cl5RoRJK.js";
|
|
5
|
+
import { T as Tag } from "./Tag-BZXOdJeY.js";
|
|
6
|
+
import { u as usePushConnection } from "./usePushConnection-BOddel3U.js";
|
|
7
|
+
import "./ProjectBreadcrumb-l5PnV6Jp.js";
|
|
8
|
+
import "./useWorkflowActivate-DKZ9PzgK.js";
|
|
9
|
+
import "./global-link-actions-BfwrTt1h.js";
|
|
10
|
+
import "./readyToRunWorkflows.store-D8qADh9A.js";
|
|
11
11
|
const _hoisted_1$4 = ["data-action-id", "onClick"];
|
|
12
12
|
const _hoisted_2$3 = { key: 0 };
|
|
13
13
|
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
@@ -394,271 +394,6 @@ const cssModules$3 = {
|
|
|
394
394
|
};
|
|
395
395
|
const TabBar = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__cssModules", cssModules$3]]);
|
|
396
396
|
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
397
|
-
__name: "IntersectionObserver",
|
|
398
|
-
props: {
|
|
399
|
-
threshold: { default: 0 },
|
|
400
|
-
enabled: { type: Boolean, default: false },
|
|
401
|
-
eventBus: {}
|
|
402
|
-
},
|
|
403
|
-
emits: ["observed"],
|
|
404
|
-
setup(__props, { emit: __emit }) {
|
|
405
|
-
const props = __props;
|
|
406
|
-
const emit = __emit;
|
|
407
|
-
const observer = ref(null);
|
|
408
|
-
const root = ref(null);
|
|
409
|
-
onBeforeUnmount(() => {
|
|
410
|
-
if (props.enabled && observer.value) {
|
|
411
|
-
observer.value.disconnect();
|
|
412
|
-
}
|
|
413
|
-
});
|
|
414
|
-
onMounted(() => {
|
|
415
|
-
if (!props.enabled) {
|
|
416
|
-
return;
|
|
417
|
-
}
|
|
418
|
-
const options = {
|
|
419
|
-
root: root.value,
|
|
420
|
-
rootMargin: "0px",
|
|
421
|
-
threshold: props.threshold
|
|
422
|
-
};
|
|
423
|
-
const intersectionObserver = new IntersectionObserver((entries) => {
|
|
424
|
-
entries.forEach(({ target, isIntersecting }) => {
|
|
425
|
-
emit("observed", {
|
|
426
|
-
el: target,
|
|
427
|
-
isIntersecting
|
|
428
|
-
});
|
|
429
|
-
});
|
|
430
|
-
}, options);
|
|
431
|
-
observer.value = intersectionObserver;
|
|
432
|
-
props.eventBus.on("observe", (observed) => {
|
|
433
|
-
if (observed) {
|
|
434
|
-
intersectionObserver.observe(observed);
|
|
435
|
-
}
|
|
436
|
-
});
|
|
437
|
-
props.eventBus.on("unobserve", (observed) => {
|
|
438
|
-
intersectionObserver.unobserve(observed);
|
|
439
|
-
});
|
|
440
|
-
});
|
|
441
|
-
return (_ctx, _cache) => {
|
|
442
|
-
return openBlock(), createElementBlock("div", {
|
|
443
|
-
ref_key: "root",
|
|
444
|
-
ref: root
|
|
445
|
-
}, [
|
|
446
|
-
renderSlot(_ctx.$slots, "default")
|
|
447
|
-
], 512);
|
|
448
|
-
};
|
|
449
|
-
}
|
|
450
|
-
});
|
|
451
|
-
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
452
|
-
__name: "IntersectionObserved",
|
|
453
|
-
props: {
|
|
454
|
-
enabled: { type: Boolean, default: false },
|
|
455
|
-
eventBus: {}
|
|
456
|
-
},
|
|
457
|
-
setup(__props) {
|
|
458
|
-
const props = __props;
|
|
459
|
-
const observed = ref(null);
|
|
460
|
-
onMounted(async () => {
|
|
461
|
-
if (!props.enabled) {
|
|
462
|
-
return;
|
|
463
|
-
}
|
|
464
|
-
await nextTick();
|
|
465
|
-
props.eventBus.emit("observe", observed.value);
|
|
466
|
-
});
|
|
467
|
-
onBeforeUnmount(() => {
|
|
468
|
-
if (props.enabled) {
|
|
469
|
-
props.eventBus.emit("unobserve", observed.value);
|
|
470
|
-
}
|
|
471
|
-
});
|
|
472
|
-
return (_ctx, _cache) => {
|
|
473
|
-
return openBlock(), createElementBlock("span", {
|
|
474
|
-
ref_key: "observed",
|
|
475
|
-
ref: observed
|
|
476
|
-
}, [
|
|
477
|
-
renderSlot(_ctx.$slots, "default")
|
|
478
|
-
], 512);
|
|
479
|
-
};
|
|
480
|
-
}
|
|
481
|
-
});
|
|
482
|
-
const _hoisted_1$2 = { class: "tags" };
|
|
483
|
-
const _hoisted_2$2 = ["onClick"];
|
|
484
|
-
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
485
|
-
__name: "TagsContainer",
|
|
486
|
-
props: {
|
|
487
|
-
tagIds: {},
|
|
488
|
-
tagsById: {},
|
|
489
|
-
limit: { default: 20 },
|
|
490
|
-
clickable: { type: Boolean, default: false },
|
|
491
|
-
responsive: { type: Boolean, default: false },
|
|
492
|
-
hoverable: { type: Boolean, default: false }
|
|
493
|
-
},
|
|
494
|
-
emits: ["click"],
|
|
495
|
-
setup(__props, { emit: __emit }) {
|
|
496
|
-
const props = __props;
|
|
497
|
-
const emit = __emit;
|
|
498
|
-
const maxWidth = ref(320);
|
|
499
|
-
const intersectionEventBus = createEventBus();
|
|
500
|
-
const visibility = ref({});
|
|
501
|
-
const tagsContainer = ref();
|
|
502
|
-
const style = computed(() => ({
|
|
503
|
-
"max-width": `${maxWidth.value}px`
|
|
504
|
-
}));
|
|
505
|
-
const tags = computed(() => {
|
|
506
|
-
const allTags = props.tagIds.map((tagId) => props.tagsById[tagId]).filter(Boolean);
|
|
507
|
-
let toDisplay = props.limit ? allTags.slice(0, props.limit) : allTags;
|
|
508
|
-
toDisplay = toDisplay.map((tag) => ({
|
|
509
|
-
...tag,
|
|
510
|
-
hidden: props.responsive && !visibility.value[tag.id]
|
|
511
|
-
}));
|
|
512
|
-
let visibleCount = toDisplay.length;
|
|
513
|
-
if (props.responsive) {
|
|
514
|
-
visibleCount = Object.values(visibility.value).reduce(
|
|
515
|
-
(accu, val) => val ? accu + 1 : accu,
|
|
516
|
-
0
|
|
517
|
-
);
|
|
518
|
-
}
|
|
519
|
-
if (visibleCount < allTags.length) {
|
|
520
|
-
const hidden = allTags.slice(visibleCount);
|
|
521
|
-
const hiddenTitle = hidden.reduce(
|
|
522
|
-
(accu, tag) => accu ? `${accu}, ${tag.name}` : tag.name,
|
|
523
|
-
""
|
|
524
|
-
);
|
|
525
|
-
const countTag = {
|
|
526
|
-
id: "count",
|
|
527
|
-
name: `+${hidden.length}`,
|
|
528
|
-
title: hiddenTitle,
|
|
529
|
-
isCount: true
|
|
530
|
-
};
|
|
531
|
-
toDisplay.splice(visibleCount, 0, countTag);
|
|
532
|
-
}
|
|
533
|
-
return toDisplay;
|
|
534
|
-
});
|
|
535
|
-
const setMaxWidth = () => {
|
|
536
|
-
const container2 = tagsContainer.value?.$el;
|
|
537
|
-
const parent = container2?.parentNode;
|
|
538
|
-
if (parent) {
|
|
539
|
-
maxWidth.value = 0;
|
|
540
|
-
void nextTick(() => {
|
|
541
|
-
maxWidth.value = parent.clientWidth;
|
|
542
|
-
});
|
|
543
|
-
}
|
|
544
|
-
};
|
|
545
|
-
const debouncedSetMaxWidth = debounce(setMaxWidth, 100);
|
|
546
|
-
const onObserved = ({ el, isIntersecting }) => {
|
|
547
|
-
if (el.dataset.id) {
|
|
548
|
-
visibility.value = { ...visibility.value, [el.dataset.id]: isIntersecting };
|
|
549
|
-
}
|
|
550
|
-
};
|
|
551
|
-
const onClick = (e, tag) => {
|
|
552
|
-
if (props.clickable) {
|
|
553
|
-
e.stopPropagation();
|
|
554
|
-
}
|
|
555
|
-
if (!tag.hidden) {
|
|
556
|
-
emit("click", tag.id);
|
|
557
|
-
}
|
|
558
|
-
};
|
|
559
|
-
onMounted(() => {
|
|
560
|
-
setMaxWidth();
|
|
561
|
-
window.addEventListener("resize", debouncedSetMaxWidth);
|
|
562
|
-
});
|
|
563
|
-
onBeforeUnmount(() => {
|
|
564
|
-
window.removeEventListener("resize", debouncedSetMaxWidth);
|
|
565
|
-
});
|
|
566
|
-
return (_ctx, _cache) => {
|
|
567
|
-
const _component_el_tag = resolveComponent("el-tag");
|
|
568
|
-
return openBlock(), createBlock(_sfc_main$9, {
|
|
569
|
-
ref_key: "tagsContainer",
|
|
570
|
-
ref: tagsContainer,
|
|
571
|
-
threshold: 1,
|
|
572
|
-
class: "tags-container",
|
|
573
|
-
style: normalizeStyle(style.value),
|
|
574
|
-
enabled: _ctx.responsive,
|
|
575
|
-
"event-bus": unref(intersectionEventBus),
|
|
576
|
-
onObserved
|
|
577
|
-
}, {
|
|
578
|
-
default: withCtx(() => [
|
|
579
|
-
createBaseVNode("span", _hoisted_1$2, [
|
|
580
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(tags.value, (tag) => {
|
|
581
|
-
return openBlock(), createElementBlock("span", {
|
|
582
|
-
key: tag.id,
|
|
583
|
-
class: normalizeClass({ clickable: !tag.hidden }),
|
|
584
|
-
onClick: (e) => onClick(e, tag)
|
|
585
|
-
}, [
|
|
586
|
-
tag.isCount ? (openBlock(), createBlock(_component_el_tag, {
|
|
587
|
-
key: 0,
|
|
588
|
-
title: tag.title,
|
|
589
|
-
type: "info",
|
|
590
|
-
size: "small",
|
|
591
|
-
class: "count-container",
|
|
592
|
-
"disable-transitions": true
|
|
593
|
-
}, {
|
|
594
|
-
default: withCtx(() => [
|
|
595
|
-
createTextVNode(toDisplayString(tag.name), 1)
|
|
596
|
-
]),
|
|
597
|
-
_: 2
|
|
598
|
-
}, 1032, ["title"])) : (openBlock(), createBlock(_sfc_main$8, {
|
|
599
|
-
key: 1,
|
|
600
|
-
class: normalizeClass({ hideTag: tag.hidden }),
|
|
601
|
-
"data-id": tag.id,
|
|
602
|
-
enabled: _ctx.responsive,
|
|
603
|
-
"event-bus": unref(intersectionEventBus)
|
|
604
|
-
}, {
|
|
605
|
-
default: withCtx(() => [
|
|
606
|
-
createVNode(_component_el_tag, {
|
|
607
|
-
title: tag.name,
|
|
608
|
-
type: "info",
|
|
609
|
-
size: "mini",
|
|
610
|
-
class: normalizeClass({ hoverable: _ctx.hoverable }),
|
|
611
|
-
"disable-transitions": true
|
|
612
|
-
}, {
|
|
613
|
-
default: withCtx(() => [
|
|
614
|
-
createTextVNode(toDisplayString(tag.name), 1)
|
|
615
|
-
]),
|
|
616
|
-
_: 2
|
|
617
|
-
}, 1032, ["title", "class"])
|
|
618
|
-
]),
|
|
619
|
-
_: 2
|
|
620
|
-
}, 1032, ["class", "data-id", "enabled", "event-bus"]))
|
|
621
|
-
], 10, _hoisted_2$2);
|
|
622
|
-
}), 128))
|
|
623
|
-
])
|
|
624
|
-
]),
|
|
625
|
-
_: 1
|
|
626
|
-
}, 8, ["style", "enabled", "event-bus"]);
|
|
627
|
-
};
|
|
628
|
-
}
|
|
629
|
-
});
|
|
630
|
-
const TagsContainer = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-6bab2764"]]);
|
|
631
|
-
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
632
|
-
__name: "WorkflowTagsContainer",
|
|
633
|
-
props: {
|
|
634
|
-
tagIds: {},
|
|
635
|
-
limit: {},
|
|
636
|
-
clickable: { type: Boolean },
|
|
637
|
-
responsive: { type: Boolean },
|
|
638
|
-
hoverable: { type: Boolean }
|
|
639
|
-
},
|
|
640
|
-
emits: ["click"],
|
|
641
|
-
setup(__props, { emit: __emit }) {
|
|
642
|
-
const emit = __emit;
|
|
643
|
-
const annotationTagsStore = useTagsStore();
|
|
644
|
-
const tagsById = computed(() => annotationTagsStore.tagsById);
|
|
645
|
-
function onClick(tagId) {
|
|
646
|
-
emit("click", tagId);
|
|
647
|
-
}
|
|
648
|
-
return (_ctx, _cache) => {
|
|
649
|
-
return openBlock(), createBlock(TagsContainer, {
|
|
650
|
-
"tag-ids": _ctx.tagIds,
|
|
651
|
-
"tags-by-id": tagsById.value,
|
|
652
|
-
limit: _ctx.limit,
|
|
653
|
-
clickable: _ctx.clickable,
|
|
654
|
-
responsive: _ctx.responsive,
|
|
655
|
-
hoverable: _ctx.hoverable,
|
|
656
|
-
onClick
|
|
657
|
-
}, null, 8, ["tag-ids", "tags-by-id", "limit", "clickable", "responsive", "hoverable"]);
|
|
658
|
-
};
|
|
659
|
-
}
|
|
660
|
-
});
|
|
661
|
-
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
662
397
|
__name: "BreakpointsObserver",
|
|
663
398
|
props: {
|
|
664
399
|
valueXS: {},
|
|
@@ -731,71 +466,6 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
731
466
|
};
|
|
732
467
|
}
|
|
733
468
|
});
|
|
734
|
-
const _hoisted_1$1 = { key: 0 };
|
|
735
|
-
const _hoisted_2$1 = { key: 1 };
|
|
736
|
-
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
737
|
-
__name: "WorkflowHistoryButton",
|
|
738
|
-
props: {
|
|
739
|
-
workflowId: {},
|
|
740
|
-
isNewWorkflow: { type: Boolean },
|
|
741
|
-
isFeatureEnabled: { type: Boolean }
|
|
742
|
-
},
|
|
743
|
-
emits: ["upgrade"],
|
|
744
|
-
setup(__props, { emit: __emit }) {
|
|
745
|
-
const locale = useI18n$1();
|
|
746
|
-
const props = __props;
|
|
747
|
-
const emit = __emit;
|
|
748
|
-
const workflowHistoryRoute = computed(() => ({
|
|
749
|
-
name: VIEWS.WORKFLOW_HISTORY,
|
|
750
|
-
params: {
|
|
751
|
-
workflowId: props.workflowId
|
|
752
|
-
}
|
|
753
|
-
}));
|
|
754
|
-
return (_ctx, _cache) => {
|
|
755
|
-
const _component_N8nIconButton = _sfc_main$d;
|
|
756
|
-
const _component_RouterLink = resolveComponent("RouterLink");
|
|
757
|
-
const _component_N8nLink = N8nLink;
|
|
758
|
-
const _component_N8nTooltip = Tooltip;
|
|
759
|
-
return openBlock(), createBlock(_component_N8nTooltip, { placement: "bottom" }, {
|
|
760
|
-
content: withCtx(() => [
|
|
761
|
-
_ctx.isFeatureEnabled && _ctx.isNewWorkflow ? (openBlock(), createElementBlock("span", _hoisted_1$1, toDisplayString(unref(locale).baseText("workflowHistory.button.tooltip.empty")), 1)) : _ctx.isFeatureEnabled ? (openBlock(), createElementBlock("span", _hoisted_2$1, toDisplayString(unref(locale).baseText("workflowHistory.button.tooltip.enabled")), 1)) : (openBlock(), createBlock(unref(I18nT), {
|
|
762
|
-
key: 2,
|
|
763
|
-
keypath: "workflowHistory.button.tooltip.disabled",
|
|
764
|
-
scope: "global"
|
|
765
|
-
}, {
|
|
766
|
-
link: withCtx(() => [
|
|
767
|
-
createVNode(_component_N8nLink, {
|
|
768
|
-
size: "small",
|
|
769
|
-
onClick: _cache[0] || (_cache[0] = ($event) => emit("upgrade"))
|
|
770
|
-
}, {
|
|
771
|
-
default: withCtx(() => [
|
|
772
|
-
createTextVNode(toDisplayString(unref(locale).baseText("workflowHistory.button.tooltip.disabled.link")), 1)
|
|
773
|
-
]),
|
|
774
|
-
_: 1
|
|
775
|
-
})
|
|
776
|
-
]),
|
|
777
|
-
_: 1
|
|
778
|
-
}))
|
|
779
|
-
]),
|
|
780
|
-
default: withCtx(() => [
|
|
781
|
-
createVNode(_component_RouterLink, { to: workflowHistoryRoute.value }, {
|
|
782
|
-
default: withCtx(() => [
|
|
783
|
-
createVNode(_component_N8nIconButton, {
|
|
784
|
-
disabled: _ctx.isNewWorkflow || !_ctx.isFeatureEnabled,
|
|
785
|
-
"data-test-id": "workflow-history-button",
|
|
786
|
-
type: "highlight",
|
|
787
|
-
icon: "history",
|
|
788
|
-
size: "medium"
|
|
789
|
-
}, null, 8, ["disabled"])
|
|
790
|
-
]),
|
|
791
|
-
_: 1
|
|
792
|
-
}, 8, ["to"])
|
|
793
|
-
]),
|
|
794
|
-
_: 1
|
|
795
|
-
});
|
|
796
|
-
};
|
|
797
|
-
}
|
|
798
|
-
});
|
|
799
469
|
const HEARTBEAT_INTERVAL = 5 * TIME.MINUTE;
|
|
800
470
|
const useCollaborationStore = defineStore(STORES.COLLABORATION, () => {
|
|
801
471
|
const pushStore = usePushConnectionStore();
|
|
@@ -871,7 +541,7 @@ const useCollaborationStore = defineStore(STORES.COLLABORATION, () => {
|
|
|
871
541
|
stopHeartbeat
|
|
872
542
|
};
|
|
873
543
|
});
|
|
874
|
-
const _sfc_main$
|
|
544
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
875
545
|
__name: "CollaborationPane",
|
|
876
546
|
setup(__props) {
|
|
877
547
|
const collaborationStore = useCollaborationStore();
|
|
@@ -914,15 +584,80 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
914
584
|
};
|
|
915
585
|
}
|
|
916
586
|
});
|
|
917
|
-
const container$2 = "_container_ame1i_123";
|
|
918
|
-
const style0$1 = {
|
|
919
|
-
container: container$2
|
|
920
|
-
};
|
|
921
|
-
const cssModules$2 = {
|
|
922
|
-
"$style": style0$1
|
|
923
|
-
};
|
|
924
|
-
const CollaborationPane = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
925
|
-
const
|
|
587
|
+
const container$2 = "_container_ame1i_123";
|
|
588
|
+
const style0$1 = {
|
|
589
|
+
container: container$2
|
|
590
|
+
};
|
|
591
|
+
const cssModules$2 = {
|
|
592
|
+
"$style": style0$1
|
|
593
|
+
};
|
|
594
|
+
const CollaborationPane = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__cssModules", cssModules$2]]);
|
|
595
|
+
const _hoisted_1$2 = { key: 0 };
|
|
596
|
+
const _hoisted_2$2 = { key: 1 };
|
|
597
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
598
|
+
__name: "WorkflowHistoryButton",
|
|
599
|
+
props: {
|
|
600
|
+
workflowId: {},
|
|
601
|
+
isNewWorkflow: { type: Boolean },
|
|
602
|
+
isFeatureEnabled: { type: Boolean }
|
|
603
|
+
},
|
|
604
|
+
emits: ["upgrade"],
|
|
605
|
+
setup(__props, { emit: __emit }) {
|
|
606
|
+
const locale = useI18n$1();
|
|
607
|
+
const props = __props;
|
|
608
|
+
const emit = __emit;
|
|
609
|
+
const workflowHistoryRoute = computed(() => ({
|
|
610
|
+
name: VIEWS.WORKFLOW_HISTORY,
|
|
611
|
+
params: {
|
|
612
|
+
workflowId: props.workflowId
|
|
613
|
+
}
|
|
614
|
+
}));
|
|
615
|
+
return (_ctx, _cache) => {
|
|
616
|
+
const _component_N8nIconButton = _sfc_main$d;
|
|
617
|
+
const _component_RouterLink = resolveComponent("RouterLink");
|
|
618
|
+
const _component_N8nLink = N8nLink;
|
|
619
|
+
const _component_N8nTooltip = Tooltip;
|
|
620
|
+
return openBlock(), createBlock(_component_N8nTooltip, { placement: "bottom" }, {
|
|
621
|
+
content: withCtx(() => [
|
|
622
|
+
_ctx.isFeatureEnabled && _ctx.isNewWorkflow ? (openBlock(), createElementBlock("span", _hoisted_1$2, toDisplayString(unref(locale).baseText("workflowHistory.button.tooltip.empty")), 1)) : _ctx.isFeatureEnabled ? (openBlock(), createElementBlock("span", _hoisted_2$2, toDisplayString(unref(locale).baseText("workflowHistory.button.tooltip.enabled")), 1)) : (openBlock(), createBlock(unref(I18nT), {
|
|
623
|
+
key: 2,
|
|
624
|
+
keypath: "workflowHistory.button.tooltip.disabled",
|
|
625
|
+
scope: "global"
|
|
626
|
+
}, {
|
|
627
|
+
link: withCtx(() => [
|
|
628
|
+
createVNode(_component_N8nLink, {
|
|
629
|
+
size: "small",
|
|
630
|
+
onClick: _cache[0] || (_cache[0] = ($event) => emit("upgrade"))
|
|
631
|
+
}, {
|
|
632
|
+
default: withCtx(() => [
|
|
633
|
+
createTextVNode(toDisplayString(unref(locale).baseText("workflowHistory.button.tooltip.disabled.link")), 1)
|
|
634
|
+
]),
|
|
635
|
+
_: 1
|
|
636
|
+
})
|
|
637
|
+
]),
|
|
638
|
+
_: 1
|
|
639
|
+
}))
|
|
640
|
+
]),
|
|
641
|
+
default: withCtx(() => [
|
|
642
|
+
createVNode(_component_RouterLink, { to: workflowHistoryRoute.value }, {
|
|
643
|
+
default: withCtx(() => [
|
|
644
|
+
createVNode(_component_N8nIconButton, {
|
|
645
|
+
disabled: _ctx.isNewWorkflow || !_ctx.isFeatureEnabled,
|
|
646
|
+
"data-test-id": "workflow-history-button",
|
|
647
|
+
type: "highlight",
|
|
648
|
+
icon: "history",
|
|
649
|
+
size: "medium"
|
|
650
|
+
}, null, 8, ["disabled"])
|
|
651
|
+
]),
|
|
652
|
+
_: 1
|
|
653
|
+
}, 8, ["to"])
|
|
654
|
+
]),
|
|
655
|
+
_: 1
|
|
656
|
+
});
|
|
657
|
+
};
|
|
658
|
+
}
|
|
659
|
+
});
|
|
660
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
926
661
|
__name: "WorkflowProductionChecklist",
|
|
927
662
|
props: {
|
|
928
663
|
workflow: {}
|
|
@@ -986,106 +721,371 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
986
721
|
completed: hasEvaluationSetOutputsNode.value
|
|
987
722
|
});
|
|
988
723
|
}
|
|
989
|
-
if (!suggestedActionSettings.timeSaved?.ignored) {
|
|
990
|
-
actions.push({
|
|
991
|
-
id: "timeSaved",
|
|
992
|
-
title: i18n.baseText("workflowProductionChecklist.timeSaved.title"),
|
|
993
|
-
description: i18n.baseText("workflowProductionChecklist.timeSaved.description"),
|
|
994
|
-
moreInfoLink: TIME_SAVED_DOCS_URL,
|
|
995
|
-
completed: hasTimeSaved.value
|
|
996
|
-
});
|
|
724
|
+
if (!suggestedActionSettings.timeSaved?.ignored) {
|
|
725
|
+
actions.push({
|
|
726
|
+
id: "timeSaved",
|
|
727
|
+
title: i18n.baseText("workflowProductionChecklist.timeSaved.title"),
|
|
728
|
+
description: i18n.baseText("workflowProductionChecklist.timeSaved.description"),
|
|
729
|
+
moreInfoLink: TIME_SAVED_DOCS_URL,
|
|
730
|
+
completed: hasTimeSaved.value
|
|
731
|
+
});
|
|
732
|
+
}
|
|
733
|
+
return actions;
|
|
734
|
+
});
|
|
735
|
+
async function loadWorkflowSettings() {
|
|
736
|
+
if (props.workflow.id) {
|
|
737
|
+
cachedSettings.value = await workflowsCache.getMergedWorkflowSettings(props.workflow.id);
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
async function handleActionClick(actionId) {
|
|
741
|
+
if (actionId === "evaluations") {
|
|
742
|
+
await router.push({
|
|
743
|
+
name: VIEWS.EVALUATION_EDIT,
|
|
744
|
+
params: { name: props.workflow.id }
|
|
745
|
+
});
|
|
746
|
+
} else if (actionId === "errorWorkflow" || actionId === "timeSaved") {
|
|
747
|
+
uiStore.openModal(WORKFLOW_SETTINGS_MODAL_KEY);
|
|
748
|
+
}
|
|
749
|
+
isPopoverOpen.value = false;
|
|
750
|
+
}
|
|
751
|
+
function isValidAction(action) {
|
|
752
|
+
return ["evaluations", "errorWorkflow", "timeSaved"].includes(action);
|
|
753
|
+
}
|
|
754
|
+
async function handleIgnoreClick(actionId) {
|
|
755
|
+
if (!isValidAction(actionId)) {
|
|
756
|
+
return;
|
|
757
|
+
}
|
|
758
|
+
await workflowsCache.ignoreSuggestedAction(props.workflow.id, actionId);
|
|
759
|
+
await loadWorkflowSettings();
|
|
760
|
+
telemetry.track("user clicked ignore suggested action", {
|
|
761
|
+
actionId
|
|
762
|
+
});
|
|
763
|
+
}
|
|
764
|
+
async function handleIgnoreAll() {
|
|
765
|
+
const ignoreAllConfirmed = await message.confirm(
|
|
766
|
+
i18n.baseText("workflowProductionChecklist.ignoreAllConfirmation.description"),
|
|
767
|
+
i18n.baseText("workflowProductionChecklist.ignoreAllConfirmation.title"),
|
|
768
|
+
{
|
|
769
|
+
confirmButtonText: i18n.baseText("workflowProductionChecklist.ignoreAllConfirmation.confirm")
|
|
770
|
+
}
|
|
771
|
+
);
|
|
772
|
+
if (ignoreAllConfirmed === MODAL_CONFIRM) {
|
|
773
|
+
await workflowsCache.ignoreAllSuggestedActionsForAllWorkflows(
|
|
774
|
+
availableActions.value.map((action) => action.id)
|
|
775
|
+
);
|
|
776
|
+
await loadWorkflowSettings();
|
|
777
|
+
telemetry.track("user clicked ignore suggested actions for all workflows");
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
function openSuggestedActions() {
|
|
781
|
+
isPopoverOpen.value = true;
|
|
782
|
+
}
|
|
783
|
+
function onPopoverOpened() {
|
|
784
|
+
telemetry.track("user opened suggested actions checklist");
|
|
785
|
+
}
|
|
786
|
+
function handlePopoverOpenChange(open) {
|
|
787
|
+
if (open) {
|
|
788
|
+
isPopoverOpen.value = true;
|
|
789
|
+
onPopoverOpened();
|
|
790
|
+
} else if (!isActivationModalOpen.value) {
|
|
791
|
+
isPopoverOpen.value = false;
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
watch(
|
|
795
|
+
() => props.workflow.active,
|
|
796
|
+
async (isActive, wasActive) => {
|
|
797
|
+
if (isActive && !wasActive) {
|
|
798
|
+
if (!cachedSettings.value?.firstActivatedAt) {
|
|
799
|
+
setTimeout(() => {
|
|
800
|
+
openSuggestedActions();
|
|
801
|
+
}, 0);
|
|
802
|
+
}
|
|
803
|
+
await workflowsCache.updateFirstActivatedAt(props.workflow.id);
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
);
|
|
807
|
+
onMounted(async () => {
|
|
808
|
+
await loadWorkflowSettings();
|
|
809
|
+
});
|
|
810
|
+
return (_ctx, _cache) => {
|
|
811
|
+
return availableActions.value.length > 0 ? (openBlock(), createBlock(unref(N8nSuggestedActions), {
|
|
812
|
+
key: 0,
|
|
813
|
+
open: isPopoverOpen.value,
|
|
814
|
+
title: unref(i18n).baseText("workflowProductionChecklist.title"),
|
|
815
|
+
actions: availableActions.value,
|
|
816
|
+
"ignore-all-label": unref(i18n).baseText("workflowProductionChecklist.turnOffWorkflowSuggestions"),
|
|
817
|
+
notice: isProtectedEnvironment.value ? unref(i18n).baseText("workflowProductionChecklist.readOnlyNotice") : "",
|
|
818
|
+
"popover-alignment": "end",
|
|
819
|
+
onActionClick: handleActionClick,
|
|
820
|
+
onIgnoreClick: handleIgnoreClick,
|
|
821
|
+
onIgnoreAll: handleIgnoreAll,
|
|
822
|
+
"onUpdate:open": handlePopoverOpenChange
|
|
823
|
+
}, null, 8, ["open", "title", "actions", "ignore-all-label", "notice"])) : createCommentVNode("", true);
|
|
824
|
+
};
|
|
825
|
+
}
|
|
826
|
+
});
|
|
827
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
828
|
+
__name: "IntersectionObserver",
|
|
829
|
+
props: {
|
|
830
|
+
threshold: { default: 0 },
|
|
831
|
+
enabled: { type: Boolean, default: false },
|
|
832
|
+
eventBus: {}
|
|
833
|
+
},
|
|
834
|
+
emits: ["observed"],
|
|
835
|
+
setup(__props, { emit: __emit }) {
|
|
836
|
+
const props = __props;
|
|
837
|
+
const emit = __emit;
|
|
838
|
+
const observer = ref(null);
|
|
839
|
+
const root = ref(null);
|
|
840
|
+
onBeforeUnmount(() => {
|
|
841
|
+
if (props.enabled && observer.value) {
|
|
842
|
+
observer.value.disconnect();
|
|
843
|
+
}
|
|
844
|
+
});
|
|
845
|
+
onMounted(() => {
|
|
846
|
+
if (!props.enabled) {
|
|
847
|
+
return;
|
|
848
|
+
}
|
|
849
|
+
const options = {
|
|
850
|
+
root: root.value,
|
|
851
|
+
rootMargin: "0px",
|
|
852
|
+
threshold: props.threshold
|
|
853
|
+
};
|
|
854
|
+
const intersectionObserver = new IntersectionObserver((entries) => {
|
|
855
|
+
entries.forEach(({ target, isIntersecting }) => {
|
|
856
|
+
emit("observed", {
|
|
857
|
+
el: target,
|
|
858
|
+
isIntersecting
|
|
859
|
+
});
|
|
860
|
+
});
|
|
861
|
+
}, options);
|
|
862
|
+
observer.value = intersectionObserver;
|
|
863
|
+
props.eventBus.on("observe", (observed) => {
|
|
864
|
+
if (observed) {
|
|
865
|
+
intersectionObserver.observe(observed);
|
|
866
|
+
}
|
|
867
|
+
});
|
|
868
|
+
props.eventBus.on("unobserve", (observed) => {
|
|
869
|
+
intersectionObserver.unobserve(observed);
|
|
870
|
+
});
|
|
871
|
+
});
|
|
872
|
+
return (_ctx, _cache) => {
|
|
873
|
+
return openBlock(), createElementBlock("div", {
|
|
874
|
+
ref_key: "root",
|
|
875
|
+
ref: root
|
|
876
|
+
}, [
|
|
877
|
+
renderSlot(_ctx.$slots, "default")
|
|
878
|
+
], 512);
|
|
879
|
+
};
|
|
880
|
+
}
|
|
881
|
+
});
|
|
882
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
883
|
+
__name: "IntersectionObserved",
|
|
884
|
+
props: {
|
|
885
|
+
enabled: { type: Boolean, default: false },
|
|
886
|
+
eventBus: {}
|
|
887
|
+
},
|
|
888
|
+
setup(__props) {
|
|
889
|
+
const props = __props;
|
|
890
|
+
const observed = ref(null);
|
|
891
|
+
onMounted(async () => {
|
|
892
|
+
if (!props.enabled) {
|
|
893
|
+
return;
|
|
894
|
+
}
|
|
895
|
+
await nextTick();
|
|
896
|
+
props.eventBus.emit("observe", observed.value);
|
|
897
|
+
});
|
|
898
|
+
onBeforeUnmount(() => {
|
|
899
|
+
if (props.enabled) {
|
|
900
|
+
props.eventBus.emit("unobserve", observed.value);
|
|
901
|
+
}
|
|
902
|
+
});
|
|
903
|
+
return (_ctx, _cache) => {
|
|
904
|
+
return openBlock(), createElementBlock("span", {
|
|
905
|
+
ref_key: "observed",
|
|
906
|
+
ref: observed
|
|
907
|
+
}, [
|
|
908
|
+
renderSlot(_ctx.$slots, "default")
|
|
909
|
+
], 512);
|
|
910
|
+
};
|
|
911
|
+
}
|
|
912
|
+
});
|
|
913
|
+
const _hoisted_1$1 = { class: "tags" };
|
|
914
|
+
const _hoisted_2$1 = ["onClick"];
|
|
915
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
916
|
+
__name: "TagsContainer",
|
|
917
|
+
props: {
|
|
918
|
+
tagIds: {},
|
|
919
|
+
tagsById: {},
|
|
920
|
+
limit: { default: 20 },
|
|
921
|
+
clickable: { type: Boolean, default: false },
|
|
922
|
+
responsive: { type: Boolean, default: false },
|
|
923
|
+
hoverable: { type: Boolean, default: false }
|
|
924
|
+
},
|
|
925
|
+
emits: ["click"],
|
|
926
|
+
setup(__props, { emit: __emit }) {
|
|
927
|
+
const props = __props;
|
|
928
|
+
const emit = __emit;
|
|
929
|
+
const maxWidth = ref(320);
|
|
930
|
+
const intersectionEventBus = createEventBus();
|
|
931
|
+
const visibility = ref({});
|
|
932
|
+
const tagsContainer = ref();
|
|
933
|
+
const style = computed(() => ({
|
|
934
|
+
"max-width": `${maxWidth.value}px`
|
|
935
|
+
}));
|
|
936
|
+
const tags = computed(() => {
|
|
937
|
+
const allTags = props.tagIds.map((tagId) => props.tagsById[tagId]).filter(Boolean);
|
|
938
|
+
let toDisplay = props.limit ? allTags.slice(0, props.limit) : allTags;
|
|
939
|
+
toDisplay = toDisplay.map((tag) => ({
|
|
940
|
+
...tag,
|
|
941
|
+
hidden: props.responsive && !visibility.value[tag.id]
|
|
942
|
+
}));
|
|
943
|
+
let visibleCount = toDisplay.length;
|
|
944
|
+
if (props.responsive) {
|
|
945
|
+
visibleCount = Object.values(visibility.value).reduce(
|
|
946
|
+
(accu, val) => val ? accu + 1 : accu,
|
|
947
|
+
0
|
|
948
|
+
);
|
|
949
|
+
}
|
|
950
|
+
if (visibleCount < allTags.length) {
|
|
951
|
+
const hidden = allTags.slice(visibleCount);
|
|
952
|
+
const hiddenTitle = hidden.reduce(
|
|
953
|
+
(accu, tag) => accu ? `${accu}, ${tag.name}` : tag.name,
|
|
954
|
+
""
|
|
955
|
+
);
|
|
956
|
+
const countTag = {
|
|
957
|
+
id: "count",
|
|
958
|
+
name: `+${hidden.length}`,
|
|
959
|
+
title: hiddenTitle,
|
|
960
|
+
isCount: true
|
|
961
|
+
};
|
|
962
|
+
toDisplay.splice(visibleCount, 0, countTag);
|
|
997
963
|
}
|
|
998
|
-
return
|
|
964
|
+
return toDisplay;
|
|
999
965
|
});
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
await router.push({
|
|
1008
|
-
name: VIEWS.EVALUATION_EDIT,
|
|
1009
|
-
params: { name: props.workflow.id }
|
|
966
|
+
const setMaxWidth = () => {
|
|
967
|
+
const container2 = tagsContainer.value?.$el;
|
|
968
|
+
const parent = container2?.parentNode;
|
|
969
|
+
if (parent) {
|
|
970
|
+
maxWidth.value = 0;
|
|
971
|
+
void nextTick(() => {
|
|
972
|
+
maxWidth.value = parent.clientWidth;
|
|
1010
973
|
});
|
|
1011
|
-
} else if (actionId === "errorWorkflow" || actionId === "timeSaved") {
|
|
1012
|
-
uiStore.openModal(WORKFLOW_SETTINGS_MODAL_KEY);
|
|
1013
|
-
}
|
|
1014
|
-
isPopoverOpen.value = false;
|
|
1015
|
-
}
|
|
1016
|
-
function isValidAction(action) {
|
|
1017
|
-
return ["evaluations", "errorWorkflow", "timeSaved"].includes(action);
|
|
1018
|
-
}
|
|
1019
|
-
async function handleIgnoreClick(actionId) {
|
|
1020
|
-
if (!isValidAction(actionId)) {
|
|
1021
|
-
return;
|
|
1022
974
|
}
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
}
|
|
1029
|
-
async function handleIgnoreAll() {
|
|
1030
|
-
const ignoreAllConfirmed = await message.confirm(
|
|
1031
|
-
i18n.baseText("workflowProductionChecklist.ignoreAllConfirmation.description"),
|
|
1032
|
-
i18n.baseText("workflowProductionChecklist.ignoreAllConfirmation.title"),
|
|
1033
|
-
{
|
|
1034
|
-
confirmButtonText: i18n.baseText("workflowProductionChecklist.ignoreAllConfirmation.confirm")
|
|
1035
|
-
}
|
|
1036
|
-
);
|
|
1037
|
-
if (ignoreAllConfirmed === MODAL_CONFIRM) {
|
|
1038
|
-
await workflowsCache.ignoreAllSuggestedActionsForAllWorkflows(
|
|
1039
|
-
availableActions.value.map((action) => action.id)
|
|
1040
|
-
);
|
|
1041
|
-
await loadWorkflowSettings();
|
|
1042
|
-
telemetry.track("user clicked ignore suggested actions for all workflows");
|
|
975
|
+
};
|
|
976
|
+
const debouncedSetMaxWidth = debounce(setMaxWidth, 100);
|
|
977
|
+
const onObserved = ({ el, isIntersecting }) => {
|
|
978
|
+
if (el.dataset.id) {
|
|
979
|
+
visibility.value = { ...visibility.value, [el.dataset.id]: isIntersecting };
|
|
1043
980
|
}
|
|
1044
|
-
}
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
function onPopoverOpened() {
|
|
1049
|
-
telemetry.track("user opened suggested actions checklist");
|
|
1050
|
-
}
|
|
1051
|
-
function handlePopoverOpenChange(open) {
|
|
1052
|
-
if (open) {
|
|
1053
|
-
isPopoverOpen.value = true;
|
|
1054
|
-
onPopoverOpened();
|
|
1055
|
-
} else if (!isActivationModalOpen.value) {
|
|
1056
|
-
isPopoverOpen.value = false;
|
|
981
|
+
};
|
|
982
|
+
const onClick = (e, tag) => {
|
|
983
|
+
if (props.clickable) {
|
|
984
|
+
e.stopPropagation();
|
|
1057
985
|
}
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
() => props.workflow.active,
|
|
1061
|
-
async (isActive, wasActive) => {
|
|
1062
|
-
if (isActive && !wasActive) {
|
|
1063
|
-
if (!cachedSettings.value?.firstActivatedAt) {
|
|
1064
|
-
setTimeout(() => {
|
|
1065
|
-
openSuggestedActions();
|
|
1066
|
-
}, 0);
|
|
1067
|
-
}
|
|
1068
|
-
await workflowsCache.updateFirstActivatedAt(props.workflow.id);
|
|
1069
|
-
}
|
|
986
|
+
if (!tag.hidden) {
|
|
987
|
+
emit("click", tag.id);
|
|
1070
988
|
}
|
|
1071
|
-
|
|
1072
|
-
onMounted(
|
|
1073
|
-
|
|
989
|
+
};
|
|
990
|
+
onMounted(() => {
|
|
991
|
+
setMaxWidth();
|
|
992
|
+
window.addEventListener("resize", debouncedSetMaxWidth);
|
|
993
|
+
});
|
|
994
|
+
onBeforeUnmount(() => {
|
|
995
|
+
window.removeEventListener("resize", debouncedSetMaxWidth);
|
|
1074
996
|
});
|
|
1075
997
|
return (_ctx, _cache) => {
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
998
|
+
const _component_el_tag = resolveComponent("el-tag");
|
|
999
|
+
return openBlock(), createBlock(_sfc_main$5, {
|
|
1000
|
+
ref_key: "tagsContainer",
|
|
1001
|
+
ref: tagsContainer,
|
|
1002
|
+
threshold: 1,
|
|
1003
|
+
class: "tags-container",
|
|
1004
|
+
style: normalizeStyle(style.value),
|
|
1005
|
+
enabled: _ctx.responsive,
|
|
1006
|
+
"event-bus": unref(intersectionEventBus),
|
|
1007
|
+
onObserved
|
|
1008
|
+
}, {
|
|
1009
|
+
default: withCtx(() => [
|
|
1010
|
+
createBaseVNode("span", _hoisted_1$1, [
|
|
1011
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(tags.value, (tag) => {
|
|
1012
|
+
return openBlock(), createElementBlock("span", {
|
|
1013
|
+
key: tag.id,
|
|
1014
|
+
class: normalizeClass({ clickable: !tag.hidden }),
|
|
1015
|
+
onClick: (e) => onClick(e, tag)
|
|
1016
|
+
}, [
|
|
1017
|
+
tag.isCount ? (openBlock(), createBlock(_component_el_tag, {
|
|
1018
|
+
key: 0,
|
|
1019
|
+
title: tag.title,
|
|
1020
|
+
type: "info",
|
|
1021
|
+
size: "small",
|
|
1022
|
+
class: "count-container",
|
|
1023
|
+
"disable-transitions": true
|
|
1024
|
+
}, {
|
|
1025
|
+
default: withCtx(() => [
|
|
1026
|
+
createTextVNode(toDisplayString(tag.name), 1)
|
|
1027
|
+
]),
|
|
1028
|
+
_: 2
|
|
1029
|
+
}, 1032, ["title"])) : (openBlock(), createBlock(_sfc_main$4, {
|
|
1030
|
+
key: 1,
|
|
1031
|
+
class: normalizeClass({ hideTag: tag.hidden }),
|
|
1032
|
+
"data-id": tag.id,
|
|
1033
|
+
enabled: _ctx.responsive,
|
|
1034
|
+
"event-bus": unref(intersectionEventBus)
|
|
1035
|
+
}, {
|
|
1036
|
+
default: withCtx(() => [
|
|
1037
|
+
createVNode(_component_el_tag, {
|
|
1038
|
+
title: tag.name,
|
|
1039
|
+
type: "info",
|
|
1040
|
+
size: "mini",
|
|
1041
|
+
class: normalizeClass({ hoverable: _ctx.hoverable }),
|
|
1042
|
+
"disable-transitions": true
|
|
1043
|
+
}, {
|
|
1044
|
+
default: withCtx(() => [
|
|
1045
|
+
createTextVNode(toDisplayString(tag.name), 1)
|
|
1046
|
+
]),
|
|
1047
|
+
_: 2
|
|
1048
|
+
}, 1032, ["title", "class"])
|
|
1049
|
+
]),
|
|
1050
|
+
_: 2
|
|
1051
|
+
}, 1032, ["class", "data-id", "enabled", "event-bus"]))
|
|
1052
|
+
], 10, _hoisted_2$1);
|
|
1053
|
+
}), 128))
|
|
1054
|
+
])
|
|
1055
|
+
]),
|
|
1056
|
+
_: 1
|
|
1057
|
+
}, 8, ["style", "enabled", "event-bus"]);
|
|
1058
|
+
};
|
|
1059
|
+
}
|
|
1060
|
+
});
|
|
1061
|
+
const TagsContainer = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-6bab2764"]]);
|
|
1062
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
1063
|
+
__name: "WorkflowTagsContainer",
|
|
1064
|
+
props: {
|
|
1065
|
+
tagIds: {},
|
|
1066
|
+
limit: {},
|
|
1067
|
+
clickable: { type: Boolean },
|
|
1068
|
+
responsive: { type: Boolean },
|
|
1069
|
+
hoverable: { type: Boolean }
|
|
1070
|
+
},
|
|
1071
|
+
emits: ["click"],
|
|
1072
|
+
setup(__props, { emit: __emit }) {
|
|
1073
|
+
const emit = __emit;
|
|
1074
|
+
const annotationTagsStore = useTagsStore();
|
|
1075
|
+
const tagsById = computed(() => annotationTagsStore.tagsById);
|
|
1076
|
+
function onClick(tagId) {
|
|
1077
|
+
emit("click", tagId);
|
|
1078
|
+
}
|
|
1079
|
+
return (_ctx, _cache) => {
|
|
1080
|
+
return openBlock(), createBlock(TagsContainer, {
|
|
1081
|
+
"tag-ids": _ctx.tagIds,
|
|
1082
|
+
"tags-by-id": tagsById.value,
|
|
1083
|
+
limit: _ctx.limit,
|
|
1084
|
+
clickable: _ctx.clickable,
|
|
1085
|
+
responsive: _ctx.responsive,
|
|
1086
|
+
hoverable: _ctx.hoverable,
|
|
1087
|
+
onClick
|
|
1088
|
+
}, null, 8, ["tag-ids", "tags-by-id", "limit", "clickable", "responsive", "hoverable"]);
|
|
1089
1089
|
};
|
|
1090
1090
|
}
|
|
1091
1091
|
});
|
|
@@ -1637,33 +1637,43 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1637
1637
|
function goToWorkflowHistoryUpgrade() {
|
|
1638
1638
|
void pageRedirectionHelper.goToUpgrade("workflow-history", "upgrade-workflow-history");
|
|
1639
1639
|
}
|
|
1640
|
-
function
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
folderName: props.currentFolder.name ?? ""
|
|
1650
|
-
}
|
|
1651
|
-
});
|
|
1652
|
-
} else if (projectsStore.currentProject.id !== projectsStore.personalProject?.id) {
|
|
1653
|
-
toastTitle = locale.baseText("workflows.create.project.toast.title", {
|
|
1654
|
-
interpolate: { projectName: currentProjectName.value ?? "" }
|
|
1655
|
-
});
|
|
1656
|
-
}
|
|
1657
|
-
toastText = locale.baseText("workflows.create.project.toast.text", {
|
|
1658
|
-
interpolate: { projectName: currentProjectName.value ?? "" }
|
|
1659
|
-
});
|
|
1640
|
+
function getPersonalProjectToastContent() {
|
|
1641
|
+
const title = locale.baseText("workflows.create.personal.toast.title");
|
|
1642
|
+
if (!props.currentFolder) {
|
|
1643
|
+
return { title };
|
|
1644
|
+
}
|
|
1645
|
+
const toastMessage = locale.baseText("workflows.create.folder.toast.title", {
|
|
1646
|
+
interpolate: {
|
|
1647
|
+
projectName: "Personal",
|
|
1648
|
+
folderName: props.currentFolder.name
|
|
1660
1649
|
}
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1650
|
+
});
|
|
1651
|
+
return { title, toastMessage };
|
|
1652
|
+
}
|
|
1653
|
+
function getToastContent() {
|
|
1654
|
+
const currentProject = projectsStore.currentProject;
|
|
1655
|
+
const isPersonalProject = !projectsStore.currentProject || currentProject?.id === projectsStore.personalProject?.id;
|
|
1656
|
+
const projectName = currentProjectName.value ?? "";
|
|
1657
|
+
if (isPersonalProject) {
|
|
1658
|
+
return getPersonalProjectToastContent();
|
|
1659
|
+
}
|
|
1660
|
+
const titleKey = props.currentFolder ? "workflows.create.folder.toast.title" : "workflows.create.project.toast.title";
|
|
1661
|
+
const interpolateData = props.currentFolder ? { projectName, folderName: props.currentFolder.name ?? "" } : { projectName };
|
|
1662
|
+
const title = locale.baseText(titleKey, { interpolate: interpolateData });
|
|
1663
|
+
const toastMessage = locale.baseText("workflows.create.project.toast.text", {
|
|
1664
|
+
interpolate: { projectName }
|
|
1665
|
+
});
|
|
1666
|
+
return { title, toastMessage };
|
|
1667
|
+
}
|
|
1668
|
+
function showCreateWorkflowSuccessToast(id) {
|
|
1669
|
+
const shouldShowToast = !id || ["new", PLACEHOLDER_EMPTY_WORKFLOW_ID].includes(id);
|
|
1670
|
+
if (!shouldShowToast) return;
|
|
1671
|
+
const { title, toastMessage } = getToastContent();
|
|
1672
|
+
toast.showMessage({
|
|
1673
|
+
title,
|
|
1674
|
+
message: toastMessage,
|
|
1675
|
+
type: "success"
|
|
1676
|
+
});
|
|
1667
1677
|
}
|
|
1668
1678
|
const onBreadcrumbsItemSelected = (item) => {
|
|
1669
1679
|
if (item.href) {
|
|
@@ -1682,7 +1692,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1682
1692
|
return openBlock(), createElementBlock("div", {
|
|
1683
1693
|
class: normalizeClass(unref($style).container)
|
|
1684
1694
|
}, [
|
|
1685
|
-
createVNode(_sfc_main$
|
|
1695
|
+
createVNode(_sfc_main$9, {
|
|
1686
1696
|
"value-x-s": 15,
|
|
1687
1697
|
"value-s-m": 25,
|
|
1688
1698
|
"value-m-d": 50,
|
|
@@ -1739,7 +1749,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1739
1749
|
"data-test-id": "new-tag-link",
|
|
1740
1750
|
onClick: onTagsEditEnable
|
|
1741
1751
|
}, " + " + toDisplayString(unref(i18n).baseText("workflowDetails.addTag")), 1)
|
|
1742
|
-
])) : (openBlock(), createBlock(_sfc_main$
|
|
1752
|
+
])) : (openBlock(), createBlock(_sfc_main$2, {
|
|
1743
1753
|
key: _ctx.id,
|
|
1744
1754
|
"tag-ids": workflowTagIds.value,
|
|
1745
1755
|
clickable: true,
|
|
@@ -1765,7 +1775,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1765
1775
|
]),
|
|
1766
1776
|
createVNode(_sfc_main$f, { class: "actions" }, {
|
|
1767
1777
|
default: withCtx(() => [
|
|
1768
|
-
!isNewWorkflow.value ? (openBlock(), createBlock(_sfc_main$
|
|
1778
|
+
!isNewWorkflow.value ? (openBlock(), createBlock(_sfc_main$6, {
|
|
1769
1779
|
key: 0,
|
|
1770
1780
|
workflow: unref(workflowsStore).workflow
|
|
1771
1781
|
}, null, 8, ["workflow"])) : createCommentVNode("", true),
|
|
@@ -1844,7 +1854,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1844
1854
|
"data-test-id": "workflow-save-button",
|
|
1845
1855
|
onClick: onSaveButtonClick
|
|
1846
1856
|
}, null, 8, ["saved", "disabled", "is-saving", "with-shortcut", "shortcut-tooltip"]),
|
|
1847
|
-
createVNode(_sfc_main$
|
|
1857
|
+
createVNode(_sfc_main$7, {
|
|
1848
1858
|
"workflow-id": props.id,
|
|
1849
1859
|
"is-feature-enabled": isWorkflowHistoryFeatureEnabled.value,
|
|
1850
1860
|
"is-new-workflow": isNewWorkflow.value,
|
|
@@ -1893,7 +1903,7 @@ const style1 = {
|
|
|
1893
1903
|
const cssModules$1 = {
|
|
1894
1904
|
"$style": style1
|
|
1895
1905
|
};
|
|
1896
|
-
const WorkflowDetails = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__cssModules", cssModules$1], ["__scopeId", "data-v-
|
|
1906
|
+
const WorkflowDetails = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__cssModules", cssModules$1], ["__scopeId", "data-v-3cc77b55"]]);
|
|
1897
1907
|
const GithubButton = defineComponent({
|
|
1898
1908
|
name: "github-button",
|
|
1899
1909
|
props: {
|