n8n-editor-ui 1.75.1 → 1.77.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/{AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-BhRv3Xk0.js → AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-DI9LKNPl.js} +1 -1
- package/dist/assets/{AuthView-vL9vjCvD.js → AuthView-DM7o3O4n.js} +2 -2
- package/dist/assets/{CanvasChat-B69VJDcA.js → CanvasChat-D_6gR76j.js} +19 -18
- package/dist/assets/{CanvasControls-DhhKk7yf.js → CanvasControls-Nhfb4Lvl.js} +1 -1
- package/dist/assets/{ChangePasswordView-D8y2rYLl.js → ChangePasswordView-BaAm4ZVG.js} +3 -3
- package/dist/assets/CollectionParameter-B6Y-W51v.js +4 -0
- package/dist/assets/{ConcurrentExecutionsHeader-Dv0s5rxY.js → ConcurrentExecutionsHeader-DIjBdza6.js} +2 -2
- package/dist/assets/{CredentialsView-Dp0fVbpZ.js → CredentialsView-Xu6hENWr.js} +4 -4
- package/dist/assets/{ErrorView-a6qq4rkt.js → ErrorView-DUTGEeMV.js} +1 -1
- package/dist/assets/{ExecutionsView-CpILe_1o.js → ExecutionsView-BUxJO71n.js} +17 -5
- package/dist/assets/{FileSaver.min-C1QTiJmy.js → FileSaver.min-BEdek61R.js} +1 -1
- package/dist/assets/{FixedCollectionParameter-DvdC-9QQ.css → FixedCollectionParameter-BReT5syB.css} +18 -18
- package/dist/assets/{FixedCollectionParameter-kphzKyyy.js → FixedCollectionParameter-C347CzJX.js} +27 -3
- package/dist/assets/{ForgotMyPasswordView-DzUekqel.js → ForgotMyPasswordView-COBAL4BR.js} +3 -3
- package/dist/assets/{Logo-B-pFOUGc.js → Logo-D0YIkpeq.js} +1 -1
- package/dist/assets/{MainHeader-C6S60KwG.js → MainHeader-C9fFpTj2.js} +15 -105
- package/dist/assets/{MainHeader-BIKp2Ncp.css → MainHeader-DC-g9NGP.css} +12 -11
- package/dist/assets/{MainSidebar-CJ-OKhK-.js → MainSidebar-DqTz49bY.js} +38 -81
- package/dist/assets/{NodeCreation-CNcty5fl.js → NodeCreation-BfPITu8g.js} +4 -4
- package/dist/assets/{NodeCreator-DAW2sX8p.js → NodeCreator-CK6kn0Jv.js} +4 -5
- package/dist/assets/{NodeViewSwitcher-mtWBt9cw.js → NodeViewSwitcher-Ccwulgc_.js} +164 -83
- package/dist/assets/{NodeViewSwitcher-CB1zkjni.css → NodeViewSwitcher-DApULbEt.css} +36 -39
- package/dist/assets/{ProjectCardBadge-DcWhzEr6.js → ProjectCardBadge-Dzk3JBiy.js} +2 -15
- package/dist/assets/{ProjectHeader-D2FCquSr.js → ProjectHeader-DScDlb97.js} +1 -1
- package/dist/assets/{ProjectSettings-CDg4IQw7.js → ProjectSettings-BKBT1ZQ3.js} +2 -2
- package/dist/assets/{PushConnectionTracker.vue_vue_type_script_setup_true_lang-BPBen7Li.js → PushConnectionTracker.vue_vue_type_script_setup_true_lang-vHkaCcgH.js} +1 -1
- package/dist/assets/{ResourcesListLayout-DWASP6Vp.js → ResourcesListLayout-Bm25PbPe.js} +21 -11
- package/dist/assets/{ResourcesListLayout-CJC-YvjD.css → ResourcesListLayout-d7mMNhOL.css} +6 -6
- package/dist/assets/{RunDataJson-CFNeORgR.js → RunDataJson-DdPA-vUg.js} +14 -15
- package/dist/assets/{RunDataJson-BXTLuo7i.css → RunDataJson-Txw0lqay.css} +1 -0
- package/dist/assets/{RunDataJsonActions-COFXneND.js → RunDataJsonActions-DQOpbX-O.js} +2 -2
- package/dist/assets/{RunDataSearch-D9UDSGjR.js → RunDataSearch-CouFZTIv.js} +1 -1
- package/dist/assets/{RunDataTable-C3flt0dy.js → RunDataTable-BTSlSsV8.js} +18 -20
- package/dist/assets/{SamlOnboarding-CWM-8qu7.js → SamlOnboarding-ByjacAW7.js} +3 -3
- package/dist/assets/{SettingsApiView-Bl6jvpWQ.js → SettingsApiView-Bcy_zE6E.js} +1 -1
- package/dist/assets/{SettingsCommunityNodesView-5Dl4EOzd.js → SettingsCommunityNodesView-Cjl8HKbz.js} +4 -4
- package/dist/assets/{SettingsExternalSecrets-DljwCjwW.js → SettingsExternalSecrets-BdjUgns5.js} +1 -1
- package/dist/assets/{SettingsLdapView-5kgLPxB7.js → SettingsLdapView-JZznK2gT.js} +1 -1
- package/dist/assets/{SettingsLogStreamingView-CsB-E4Kv.js → SettingsLogStreamingView-Dr-YFp2W.js} +1 -1
- package/dist/assets/{SettingsPersonalView-B0vJNuPt.js → SettingsPersonalView-inpY_nzK.js} +1 -1
- package/dist/assets/{SettingsSourceControl-B7SGpzBu.js → SettingsSourceControl-Cg7lS-SE.js} +1 -1
- package/dist/assets/{SettingsSso-pDsu2lsS.js → SettingsSso-NG13hUzi.js} +1 -1
- package/dist/assets/{SettingsUsageAndPlan-B83lunzH.js → SettingsUsageAndPlan-BgSLN2VF.js} +1 -1
- package/dist/assets/{SettingsUsersView-DPM5R_9p.js → SettingsUsersView-DUmnh2jo.js} +1 -1
- package/dist/assets/{SettingsView-NF_8zzqr.js → SettingsView-DdHGr_vR.js} +1 -1
- package/dist/assets/{SetupView-Dzehb2sC.js → SetupView-ByLBPzaO.js} +3 -3
- package/dist/assets/{SetupWorkflowCredentialsButton-Bhx7c9Lu.js → SetupWorkflowCredentialsButton-Dv3O2B1n.js} +3 -2
- package/dist/assets/{SetupWorkflowFromTemplateView-DaP6_l4S.js → SetupWorkflowFromTemplateView-DFn8kOzj.js} +3 -3
- package/dist/assets/{SigninView-BLyXzN0c.js → SigninView-DIJ4QhSe.js} +3 -3
- package/dist/assets/{SignoutView-BsaJctbQ.js → SignoutView-CzgpQ3SX.js} +1 -1
- package/dist/assets/{SignupView-m53hHk3y.js → SignupView-Ki2_QcUU.js} +3 -3
- package/dist/assets/{TemplateDetails-CWR4kXyf.js → TemplateDetails-BSeVX-wU.js} +1 -1
- package/dist/assets/{TemplateList-DLQxEmgt.js → TemplateList-CM9EZ6da.js} +1 -1
- package/dist/assets/{TemplatesCollectionView-CobxDh9v.js → TemplatesCollectionView-DQMG3Nx0.js} +5 -5
- package/dist/assets/{TemplatesSearchView-CDW7EH1p.js → TemplatesSearchView-BG5Bfpq9.js} +3 -3
- package/dist/assets/{TemplatesView-DJCodjB-.js → TemplatesView-D3vhmKK2.js} +1 -1
- package/dist/assets/{TemplatesWorkflowView-DOlLEzEa.js → TemplatesWorkflowView-BVZExmo-.js} +5 -5
- package/dist/assets/{TestDefinitionEditView-Cuphh86f.js → TestDefinitionEditView-DeYXSHuX.js} +837 -549
- package/dist/assets/{TestDefinitionEditView-FI1GVbhl.css → TestDefinitionEditView-d7yfvp9P.css} +601 -238
- package/dist/assets/{TestDefinitionListView-Dgq9dXJL.js → TestDefinitionListView-Dm0Wfpbk.js} +93 -68
- package/dist/assets/{TestDefinitionRootView-DU-JMBSH.js → TestDefinitionRootView-v_AUC4gJ.js} +1 -1
- package/dist/assets/VariablesView-BBjPCn4K.js +509 -0
- package/dist/assets/{VariablesView-D4pRzSuY.css → VariablesView-CIfrpJdg.css} +21 -54
- package/dist/assets/{WorkerView-CbqToUTB.js → WorkerView-wAx-DxZp.js} +5 -5
- package/dist/assets/{WorkflowActivator-BaM6Tydw.js → WorkflowActivator-KzTynbZM.js} +2 -2
- package/dist/assets/{WorkflowExecutionsInfoAccordion-6kKOPXK7.js → WorkflowExecutionsInfoAccordion-BWYv1FIv.js} +1 -1
- package/dist/assets/{WorkflowExecutionsLandingPage-Cqq5FeZE.js → WorkflowExecutionsLandingPage-LwIHX7rs.js} +2 -2
- package/dist/assets/{WorkflowExecutionsPreview-D1cSllVi.js → WorkflowExecutionsPreview-D68OCpWf.js} +8 -7
- package/dist/assets/{WorkflowExecutionsView-BUHtKz5M.css → WorkflowExecutionsView-BjdRnQOE.css} +32 -32
- package/dist/assets/{WorkflowExecutionsView-qTFEWbeC.js → WorkflowExecutionsView-C47WjaF2.js} +43 -29
- package/dist/assets/{WorkflowHistory-De54-QkN.js → WorkflowHistory-VBfitRhR.js} +3 -3
- package/dist/assets/{WorkflowOnboardingView-p6cAElRZ.js → WorkflowOnboardingView-X9Yz2kZe.js} +1 -31
- package/dist/assets/{WorkflowPreview-CKK96lnJ.js → WorkflowPreview-D0IqMbWq.js} +24 -6
- package/dist/assets/{WorkflowsView-D5G530AX.js → WorkflowsView-CXhmco5U.js} +7 -7
- package/dist/assets/{easyAiWorkflowUtils-eykvtlKm.js → easyAiWorkflowUtils-B7xBZAZO.js} +1 -1
- package/dist/assets/{index-CWcTt6jd.js → index-BW7gX0J2.js} +232838 -231981
- package/dist/assets/{index-DXFsvbJ_.css → index-Bs_8II2j.css} +257 -38
- package/dist/assets/{polyfills-BN5TIqPj.js → polyfills-DNwgos9f.js} +650 -0
- package/dist/assets/{pushConnection.store-CTrZ_kO6.js → pushConnection.store-C6PSl50Z.js} +1 -1
- package/dist/assets/{templateActions-B712CNo3.js → templateActions-BHlzMnfj.js} +1 -1
- package/dist/assets/useBeforeUnload-BudMrcxz.js +43 -0
- package/dist/assets/{useCanvasOperations-BSKKylIT.css → useCanvasOperations-CEWecDkR.css} +12 -12
- package/dist/assets/{useCanvasOperations-DTx4vbp_.js → useCanvasOperations-ZjLeZwpS.js} +62 -61
- package/dist/assets/{useExecutionDebugging-DjYGtT4w.js → useExecutionDebugging-C_Y6ee_L.js} +1 -1
- package/dist/assets/{useExecutionHelpers-DcyS3__o.js → useExecutionHelpers-MX6P-wr8.js} +1 -1
- package/dist/assets/{usePinnedData-C5NRkSpx.js → usePinnedData-CHMuwypo.js} +1 -1
- package/dist/assets/{usePushConnection-CGv57TM5.js → usePushConnection-3HzYJp1-.js} +3 -3
- package/dist/assets/{useRunWorkflow-C_vazd74.js → useRunWorkflow-DUK8ev8x.js} +19 -7
- package/dist/assets/{useWorkflowActivate-Dxi5zSSs.js → useWorkflowActivate-BjJ3P-qa.js} +1 -1
- package/dist/index.html +3 -3
- package/dist/static/n8n-logo.png +0 -0
- package/package.json +1 -1
- package/dist/assets/CollectionParameter-djLQ8MUO.js +0 -4
- package/dist/assets/VariablesView-CaGkZXjl.js +0 -599
- package/dist/assets/useBugReporting-BxDqzvRW.js +0 -38
- package/dist/assets/useNodeViewVersionSwitcher-CXU1PYlK.js +0 -93
package/dist/assets/{TestDefinitionListView-Dgq9dXJL.js → TestDefinitionListView-Dm0Wfpbk.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineComponent, m as resolveComponent, c as openBlock, h as createElementBlock, j as createBaseVNode, t as toDisplayString, l as unref, n as normalizeClass, i as createVNode, g as useI18n, _ as _export_sfc, q as computed, w as withCtx, k as createTextVNode, F as Fragment,
|
|
1
|
+
import { d as defineComponent, m as resolveComponent, c as openBlock, h as createElementBlock, j as createBaseVNode, t as toDisplayString, l as unref, n as normalizeClass, i as createVNode, g as useI18n, _ as _export_sfc, q as computed, w as withCtx, k as createTextVNode, F as Fragment, fy as _sfc_main$4, f as createCommentVNode, A as renderList, e as createBlock, b0 as resolveDynamicComponent, aQ as _sfc_main$5, I as withModifiers, b as useRouter, hI as useAnnotationTagsStore, hS as useTestDefinitionStore, r as ref, a as useToast, o as onMounted, V as VIEWS, ae as MODAL_CONFIRM, ak as useMessage } from "./index-BW7gX0J2.js";
|
|
2
2
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
3
3
|
__name: "EmptyState",
|
|
4
4
|
emits: ["create-test"],
|
|
@@ -55,48 +55,16 @@ const _hoisted_2 = { key: 1 };
|
|
|
55
55
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
56
56
|
__name: "TestItem",
|
|
57
57
|
props: {
|
|
58
|
-
test: {}
|
|
58
|
+
test: {},
|
|
59
|
+
actions: {}
|
|
59
60
|
},
|
|
60
|
-
emits: ["
|
|
61
|
-
setup(__props
|
|
61
|
+
emits: ["view-details"],
|
|
62
|
+
setup(__props) {
|
|
62
63
|
const props = __props;
|
|
63
64
|
const locale = useI18n();
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
icon: "play",
|
|
68
|
-
id: "run",
|
|
69
|
-
event: () => emit("run-test", props.test.id),
|
|
70
|
-
tooltip: locale.baseText("testDefinition.runTest"),
|
|
71
|
-
show: () => props.test.execution.status !== "running"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
icon: "stop",
|
|
75
|
-
id: "cancel",
|
|
76
|
-
event: () => emit("cancel-test-run", props.test.id, props.test.execution.id),
|
|
77
|
-
tooltip: locale.baseText("testDefinition.cancelTestRun"),
|
|
78
|
-
show: () => props.test.execution.status === "running"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
icon: "list",
|
|
82
|
-
id: "view",
|
|
83
|
-
event: () => emit("view-details", props.test.id),
|
|
84
|
-
tooltip: locale.baseText("testDefinition.viewDetails")
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
icon: "pen",
|
|
88
|
-
id: "edit",
|
|
89
|
-
event: () => emit("edit-test", props.test.id),
|
|
90
|
-
tooltip: locale.baseText("testDefinition.editTest")
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
icon: "trash",
|
|
94
|
-
id: "delete",
|
|
95
|
-
event: () => emit("delete-test", props.test.id),
|
|
96
|
-
tooltip: locale.baseText("testDefinition.deleteTest")
|
|
97
|
-
}
|
|
98
|
-
];
|
|
99
|
-
const visibleActions = computed(() => actions2.filter((action) => action.show?.() ?? true));
|
|
65
|
+
const visibleActions = computed(
|
|
66
|
+
() => props.actions.filter((action) => action.show?.(props.test.id) ?? true)
|
|
67
|
+
);
|
|
100
68
|
return (_ctx, _cache) => {
|
|
101
69
|
const _component_n8n_text = resolveComponent("n8n-text");
|
|
102
70
|
const _component_n8n_spinner = resolveComponent("n8n-spinner");
|
|
@@ -154,22 +122,21 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
154
122
|
return openBlock(), createBlock(_component_n8n_tooltip, {
|
|
155
123
|
key: action.icon,
|
|
156
124
|
placement: "top",
|
|
157
|
-
"show-after": 1e3
|
|
125
|
+
"show-after": 1e3,
|
|
126
|
+
content: action.tooltip(_ctx.test.id)
|
|
158
127
|
}, {
|
|
159
|
-
content: withCtx(() => [
|
|
160
|
-
createTextVNode(toDisplayString(action.tooltip), 1)
|
|
161
|
-
]),
|
|
162
128
|
default: withCtx(() => [
|
|
163
129
|
(openBlock(), createBlock(resolveDynamicComponent(unref(_sfc_main$5)), {
|
|
164
130
|
icon: action.icon,
|
|
165
131
|
"data-test-id": `${action.id}-test-button-${_ctx.test.id}`,
|
|
166
132
|
type: "tertiary",
|
|
167
133
|
size: "mini",
|
|
168
|
-
|
|
169
|
-
|
|
134
|
+
disabled: action?.disabled ? action.disabled(_ctx.test.id) : false,
|
|
135
|
+
onClick: withModifiers(($event) => action.event(_ctx.test.id), ["stop"])
|
|
136
|
+
}, null, 8, ["icon", "data-test-id", "disabled", "onClick"]))
|
|
170
137
|
]),
|
|
171
138
|
_: 2
|
|
172
|
-
},
|
|
139
|
+
}, 1032, ["content"]);
|
|
173
140
|
}), 128))
|
|
174
141
|
], 2)
|
|
175
142
|
], 10, _hoisted_1);
|
|
@@ -199,9 +166,10 @@ const TestItem = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__cssModules", cssM
|
|
|
199
166
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
200
167
|
__name: "TestsList",
|
|
201
168
|
props: {
|
|
202
|
-
tests: {}
|
|
169
|
+
tests: {},
|
|
170
|
+
actions: {}
|
|
203
171
|
},
|
|
204
|
-
emits: ["create-test"],
|
|
172
|
+
emits: ["create-test", "view-details"],
|
|
205
173
|
setup(__props) {
|
|
206
174
|
const locale = useI18n();
|
|
207
175
|
return (_ctx, _cache) => {
|
|
@@ -219,11 +187,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
219
187
|
}, null, 8, ["label"])
|
|
220
188
|
], 2),
|
|
221
189
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.tests, (test) => {
|
|
222
|
-
return openBlock(), createBlock(TestItem,
|
|
190
|
+
return openBlock(), createBlock(TestItem, {
|
|
223
191
|
key: test.id,
|
|
224
192
|
test,
|
|
225
|
-
|
|
226
|
-
|
|
193
|
+
actions: _ctx.actions,
|
|
194
|
+
onViewDetails: ($event) => _ctx.$emit("view-details", test.id)
|
|
195
|
+
}, null, 8, ["test", "actions", "onViewDetails"]);
|
|
227
196
|
}), 128))
|
|
228
197
|
], 2);
|
|
229
198
|
};
|
|
@@ -248,13 +217,50 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
248
217
|
const isLoading = ref(false);
|
|
249
218
|
const toast = useToast();
|
|
250
219
|
const locale = useI18n();
|
|
220
|
+
const { confirm } = useMessage();
|
|
221
|
+
const actions2 = computed(() => [
|
|
222
|
+
{
|
|
223
|
+
icon: "play",
|
|
224
|
+
id: "run",
|
|
225
|
+
event: onRunTest,
|
|
226
|
+
disabled: isRunDisabled,
|
|
227
|
+
show: (testId) => !isTestRunning(testId),
|
|
228
|
+
tooltip: (testId) => isRunDisabled(testId) ? getDisabledRunTooltip(testId) : locale.baseText("testDefinition.runTest")
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
icon: "stop",
|
|
232
|
+
id: "cancel",
|
|
233
|
+
event: onCancelTestRun,
|
|
234
|
+
tooltip: () => locale.baseText("testDefinition.cancelTestRun"),
|
|
235
|
+
show: (testId) => isTestRunning(testId)
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
icon: "list",
|
|
239
|
+
id: "view",
|
|
240
|
+
event: onViewDetails,
|
|
241
|
+
tooltip: () => locale.baseText("testDefinition.viewDetails")
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
icon: "pen",
|
|
245
|
+
id: "edit",
|
|
246
|
+
event: onEditTest,
|
|
247
|
+
tooltip: () => locale.baseText("testDefinition.editTest")
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
icon: "trash",
|
|
251
|
+
id: "delete",
|
|
252
|
+
event: onDeleteTest,
|
|
253
|
+
tooltip: () => locale.baseText("testDefinition.deleteTest")
|
|
254
|
+
}
|
|
255
|
+
]);
|
|
251
256
|
const tests = computed(() => {
|
|
252
257
|
return (testDefinitionStore.allTestDefinitionsByWorkflowId[router.currentRoute.value.params.name] ?? []).filter((test) => test.id !== void 0).sort((a, b) => new Date(b?.updatedAt ?? "").getTime() - new Date(a?.updatedAt ?? "").getTime()).map((test) => ({
|
|
253
258
|
id: test.id,
|
|
254
259
|
name: test.name ?? "",
|
|
255
260
|
tagName: test.annotationTagId ? getTagName(test.annotationTagId) : "",
|
|
256
261
|
testCases: testDefinitionStore.testRunsByTestId[test.id]?.length ?? 0,
|
|
257
|
-
execution: getTestExecution(test.id)
|
|
262
|
+
execution: getTestExecution(test.id),
|
|
263
|
+
fieldsIssues: testDefinitionStore.getFieldIssues(test.id)
|
|
258
264
|
}));
|
|
259
265
|
});
|
|
260
266
|
const hasTests = computed(() => tests.value.length > 0);
|
|
@@ -263,6 +269,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
263
269
|
const matchingTag = allTags.value.find((t) => t.id === tagId);
|
|
264
270
|
return matchingTag?.name ?? "";
|
|
265
271
|
}
|
|
272
|
+
function getDisabledRunTooltip(testId) {
|
|
273
|
+
const issues = testDefinitionStore.getFieldIssues(testId)?.map((i) => i.message).join("<br />- ");
|
|
274
|
+
return `${locale.baseText("testDefinition.completeConfig")} <br /> - ${issues}`;
|
|
275
|
+
}
|
|
266
276
|
function getTestExecution(testId) {
|
|
267
277
|
const lastRun = testDefinitionStore.lastRunByTestId[testId];
|
|
268
278
|
if (!lastRun) {
|
|
@@ -283,6 +293,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
283
293
|
};
|
|
284
294
|
return mockExecutions;
|
|
285
295
|
}
|
|
296
|
+
function isTestRunning(testId) {
|
|
297
|
+
return testDefinitionStore.lastRunByTestId[testId]?.status === "running";
|
|
298
|
+
}
|
|
299
|
+
function isRunDisabled(testId) {
|
|
300
|
+
return testDefinitionStore.getFieldIssues(testId)?.length > 0;
|
|
301
|
+
}
|
|
286
302
|
function onCreateTest() {
|
|
287
303
|
void router.push({ name: VIEWS.NEW_TEST_DEFINITION });
|
|
288
304
|
}
|
|
@@ -302,8 +318,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
302
318
|
toast.showError(error, locale.baseText("testDefinition.list.testStartError"));
|
|
303
319
|
}
|
|
304
320
|
}
|
|
305
|
-
async function onCancelTestRun(testId
|
|
321
|
+
async function onCancelTestRun(testId) {
|
|
306
322
|
try {
|
|
323
|
+
const testRunId = testDefinitionStore.lastRunByTestId[testId]?.id;
|
|
307
324
|
if (!testRunId) {
|
|
308
325
|
throw new Error("Failed to cancel test run");
|
|
309
326
|
}
|
|
@@ -328,6 +345,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
328
345
|
void router.push({ name: VIEWS.TEST_DEFINITION_EDIT, params: { testId } });
|
|
329
346
|
}
|
|
330
347
|
async function onDeleteTest(testId) {
|
|
348
|
+
const deleteConfirmed = await confirm(
|
|
349
|
+
locale.baseText("testDefinition.deleteTest.warning"),
|
|
350
|
+
locale.baseText("testDefinition.deleteTest"),
|
|
351
|
+
{
|
|
352
|
+
type: "warning",
|
|
353
|
+
confirmButtonText: locale.baseText("generic.delete"),
|
|
354
|
+
cancelButtonText: locale.baseText("generic.cancel"),
|
|
355
|
+
closeOnClickModal: true
|
|
356
|
+
}
|
|
357
|
+
);
|
|
358
|
+
if (deleteConfirmed !== MODAL_CONFIRM) {
|
|
359
|
+
return;
|
|
360
|
+
}
|
|
331
361
|
await testDefinitionStore.deleteById(testId);
|
|
332
362
|
toast.showMessage({
|
|
333
363
|
title: locale.baseText("testDefinition.list.testDeleted"),
|
|
@@ -338,12 +368,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
338
368
|
if (!isLoading.value) {
|
|
339
369
|
isLoading.value = true;
|
|
340
370
|
try {
|
|
341
|
-
await
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
workflowId: router.currentRoute.value.params.name
|
|
345
|
-
})
|
|
346
|
-
]);
|
|
371
|
+
await testDefinitionStore.fetchAll({
|
|
372
|
+
workflowId: router.currentRoute.value.params.name
|
|
373
|
+
});
|
|
347
374
|
isLoading.value = false;
|
|
348
375
|
} catch (error) {
|
|
349
376
|
toast.showError(error, locale.baseText("testDefinition.list.loadError"));
|
|
@@ -352,7 +379,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
352
379
|
}
|
|
353
380
|
}
|
|
354
381
|
}
|
|
355
|
-
onMounted(() => {
|
|
382
|
+
onMounted(async () => {
|
|
356
383
|
if (!testDefinitionStore.isFeatureEnabled) {
|
|
357
384
|
toast.showMessage({
|
|
358
385
|
title: locale.baseText("testDefinition.notImplemented"),
|
|
@@ -364,7 +391,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
364
391
|
});
|
|
365
392
|
return;
|
|
366
393
|
}
|
|
367
|
-
|
|
394
|
+
await loadInitialData();
|
|
395
|
+
tests.value.forEach((test) => testDefinitionStore.updateRunFieldIssues(test.id));
|
|
368
396
|
});
|
|
369
397
|
return (_ctx, _cache) => {
|
|
370
398
|
const _component_n8n_loading = resolveComponent("n8n-loading");
|
|
@@ -387,13 +415,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
387
415
|
})) : (openBlock(), createBlock(TestsList, {
|
|
388
416
|
key: 1,
|
|
389
417
|
tests: tests.value,
|
|
390
|
-
|
|
391
|
-
onRunTest,
|
|
418
|
+
actions: actions2.value,
|
|
392
419
|
onViewDetails,
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
onCancelTestRun
|
|
396
|
-
}, null, 8, ["tests"]))
|
|
420
|
+
onCreateTest
|
|
421
|
+
}, null, 8, ["tests", "actions"]))
|
|
397
422
|
], 64))
|
|
398
423
|
], 2);
|
|
399
424
|
};
|
package/dist/assets/{TestDefinitionRootView-DU-JMBSH.js → TestDefinitionRootView-v_AUC4gJ.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineComponent, b as useRouter, a4 as useWorkflowHelpers, T as useWorkflowsStore, o as onMounted, c as openBlock, h as createElementBlock, i as createVNode, n as normalizeClass, m as resolveComponent, _ as _export_sfc } from "./index-
|
|
1
|
+
import { d as defineComponent, b as useRouter, a4 as useWorkflowHelpers, T as useWorkflowsStore, o as onMounted, c as openBlock, h as createElementBlock, i as createVNode, n as normalizeClass, m as resolveComponent, _ as _export_sfc } from "./index-BW7gX0J2.js";
|
|
2
2
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3
3
|
__name: "TestDefinitionRootView",
|
|
4
4
|
setup(__props) {
|