n8n-editor-ui 1.75.0 → 1.76.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-CGrVAIIO.js → AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-Bk0ZjgAz.js} +1 -1
- package/dist/assets/{AuthView-ilZ0xRQe.js → AuthView-CQW1x21E.js} +2 -2
- package/dist/assets/{CanvasChat-B3m7qTtB.js → CanvasChat-DuJwpZew.js} +19 -18
- package/dist/assets/{CanvasControls-laNSmWAd.js → CanvasControls-Br7x0c2w.js} +1 -1
- package/dist/assets/{ChangePasswordView-DGXlOlVn.js → ChangePasswordView-Ck-5oU_m.js} +3 -3
- package/dist/assets/CollectionParameter-DRNykodC.js +4 -0
- package/dist/assets/{ConcurrentExecutionsHeader-CDIlj36E.js → ConcurrentExecutionsHeader-Dfi130Qe.js} +2 -2
- package/dist/assets/{CredentialsView-BqjdkWhh.js → CredentialsView-D44diL3J.js} +4 -4
- package/dist/assets/{ErrorView--I-VVLk9.js → ErrorView-ub9nQRXV.js} +1 -1
- package/dist/assets/{ExecutionsView-BiSV7J9a.js → ExecutionsView-DsAXYzOp.js} +17 -5
- package/dist/assets/{FileSaver.min-LAx9vEXw.js → FileSaver.min-nbqT44De.js} +1 -1
- package/dist/assets/{FixedCollectionParameter-ByX4uXQc.js → FixedCollectionParameter-DwiBHQQW.js} +1 -1
- package/dist/assets/{ForgotMyPasswordView-C-tewPwi.js → ForgotMyPasswordView-CH0wwots.js} +3 -3
- package/dist/assets/{Logo-CyDV6IUz.js → Logo-CIYEwVrA.js} +1 -1
- package/dist/assets/{MainHeader-nG1530RP.js → MainHeader-CN6RTCuC.js} +15 -105
- package/dist/assets/{MainHeader-BIKp2Ncp.css → MainHeader-DC-g9NGP.css} +12 -11
- package/dist/assets/{MainSidebar-CF4s-Ouk.js → MainSidebar-ih4BlE0n.js} +4 -81
- package/dist/assets/{NodeCreation-De8juZ9k.js → NodeCreation-DQUKwvhM.js} +4 -4
- package/dist/assets/{NodeCreator-Cra3o41k.js → NodeCreator-B1R35yuN.js} +5 -5
- package/dist/assets/{NodeViewSwitcher-BE3EzD3h.js → NodeViewSwitcher-TsFkW80s.js} +89 -48
- package/dist/assets/{NodeViewSwitcher-CB1zkjni.css → NodeViewSwitcher-aJwrKS8o.css} +23 -23
- package/dist/assets/{ProjectCardBadge-CYEfBgU2.js → ProjectCardBadge-BcCHZFJ2.js} +2 -15
- package/dist/assets/{ProjectHeader-DUhyXx1P.js → ProjectHeader-CSOMgkVs.js} +1 -1
- package/dist/assets/{ProjectSettings-DmPZa04c.js → ProjectSettings-DtqNq5WU.js} +2 -2
- package/dist/assets/{PushConnectionTracker.vue_vue_type_script_setup_true_lang-C0Zr49w5.js → PushConnectionTracker.vue_vue_type_script_setup_true_lang-CZIKiOsY.js} +1 -1
- package/dist/assets/{ResourcesListLayout-BF7yHXTU.js → ResourcesListLayout-CvkkebAN.js} +21 -11
- package/dist/assets/{ResourcesListLayout-CJC-YvjD.css → ResourcesListLayout-d7mMNhOL.css} +6 -6
- package/dist/assets/{RunDataJson-D6kl_yU3.js → RunDataJson-DA1LNZGU.js} +15 -15
- package/dist/assets/{RunDataJson-BXTLuo7i.css → RunDataJson-Txw0lqay.css} +1 -0
- package/dist/assets/{RunDataJsonActions-CBSKVOkR.js → RunDataJsonActions-DZzYHsR7.js} +2 -2
- package/dist/assets/{RunDataSearch-C8ri_W9l.js → RunDataSearch-D6-6kSmI.js} +1 -1
- package/dist/assets/{RunDataTable-fDrhEtER.js → RunDataTable-bDBgkWN3.js} +2 -2
- package/dist/assets/{SamlOnboarding-B9rLeJiC.js → SamlOnboarding-ULq0l8s6.js} +3 -3
- package/dist/assets/{SettingsApiView-DYA_Z_Bm.js → SettingsApiView-CVRk9yEi.js} +1 -1
- package/dist/assets/{SettingsCommunityNodesView-DWF5X20Q.js → SettingsCommunityNodesView-B6We65ta.js} +4 -4
- package/dist/assets/{SettingsExternalSecrets-D56h6u5r.js → SettingsExternalSecrets-wrWe6ob7.js} +1 -1
- package/dist/assets/{SettingsLdapView-tZze_vXh.js → SettingsLdapView-CeKm7XML.js} +1 -1
- package/dist/assets/{SettingsLogStreamingView-Bw3FugIn.js → SettingsLogStreamingView-DxAoQ7dF.js} +1 -1
- package/dist/assets/{SettingsPersonalView-BRXa1jDG.js → SettingsPersonalView-DFcUFc08.js} +1 -1
- package/dist/assets/{SettingsSourceControl-BBn_qSA4.js → SettingsSourceControl-D9u9tDhF.js} +1 -1
- package/dist/assets/{SettingsSso-BJCIqJoE.js → SettingsSso-gUSJtFP0.js} +1 -1
- package/dist/assets/{SettingsUsageAndPlan-BLxfFlk9.js → SettingsUsageAndPlan-C4rSaxsT.js} +1 -1
- package/dist/assets/{SettingsUsersView-DgquKogH.js → SettingsUsersView-DSaFQg1K.js} +1 -1
- package/dist/assets/{SettingsView-geSqtBi5.js → SettingsView-BcBZpdTs.js} +1 -1
- package/dist/assets/{SetupView-BUnzDsGx.js → SetupView-BnZ-D6Jy.js} +3 -3
- package/dist/assets/{SetupWorkflowCredentialsButton-OMbE5FVR.js → SetupWorkflowCredentialsButton-B3DfAGgF.js} +1 -1
- package/dist/assets/{SetupWorkflowFromTemplateView-CDUDJkOD.js → SetupWorkflowFromTemplateView-DVLoF-kN.js} +3 -3
- package/dist/assets/{SigninView-BM3kNgaO.js → SigninView-BI4UTqFm.js} +3 -3
- package/dist/assets/{SignoutView-CpD96iu3.js → SignoutView-4KEfr3ze.js} +1 -1
- package/dist/assets/{SignupView-BHirfE85.js → SignupView-BdxSQxbe.js} +3 -3
- package/dist/assets/{TemplateDetails-CnvXukVX.js → TemplateDetails-BU5E9lAh.js} +1 -1
- package/dist/assets/{TemplateList-oSLDmMo9.js → TemplateList-CSyTesvr.js} +1 -1
- package/dist/assets/{TemplatesCollectionView-CoK7iBJV.js → TemplatesCollectionView-aqqEP8td.js} +5 -5
- package/dist/assets/{TemplatesSearchView-Cu2hXp49.js → TemplatesSearchView-BXQw_aAZ.js} +3 -3
- package/dist/assets/{TemplatesView-B0NINzN-.js → TemplatesView-BbVjMkgy.js} +1 -1
- package/dist/assets/{TemplatesWorkflowView-BQngHyNE.js → TemplatesWorkflowView-Cao3RpEd.js} +5 -5
- package/dist/assets/{TestDefinitionEditView-DQ1n3kAQ.js → TestDefinitionEditView-CgW-4tTx.js} +785 -547
- package/dist/assets/{TestDefinitionEditView-FI1GVbhl.css → TestDefinitionEditView-d7yfvp9P.css} +601 -238
- package/dist/assets/{TestDefinitionListView-BnnmuS88.js → TestDefinitionListView-D3eg62pM.js} +93 -68
- package/dist/assets/{TestDefinitionRootView-D0gG8g0k.js → TestDefinitionRootView-DJdsaL4M.js} +1 -1
- package/dist/assets/VariablesView-2TmNYpas.js +509 -0
- package/dist/assets/{VariablesView-D4pRzSuY.css → VariablesView-CIfrpJdg.css} +21 -54
- package/dist/assets/{WorkerView-Bm_msQwI.js → WorkerView-C3LhhFeZ.js} +5 -5
- package/dist/assets/{WorkflowActivator-B5QyeA7d.js → WorkflowActivator-DiOQiQK2.js} +2 -2
- package/dist/assets/{WorkflowExecutionsInfoAccordion-BYRGFbed.js → WorkflowExecutionsInfoAccordion-BmMiVSHQ.js} +1 -1
- package/dist/assets/{WorkflowExecutionsLandingPage-DuWFInNH.js → WorkflowExecutionsLandingPage-CxbfP9Kf.js} +2 -2
- package/dist/assets/{WorkflowExecutionsPreview-Bwo_dPzH.js → WorkflowExecutionsPreview-Cku-ZBQ3.js} +5 -5
- package/dist/assets/{WorkflowExecutionsView-BUHtKz5M.css → WorkflowExecutionsView-BjdRnQOE.css} +32 -32
- package/dist/assets/{WorkflowExecutionsView-9Bir7Ax7.js → WorkflowExecutionsView-C0CnXLDW.js} +43 -29
- package/dist/assets/{WorkflowHistory-Cu1-T0_R.js → WorkflowHistory-Bg6AIKXX.js} +3 -3
- package/dist/assets/{WorkflowOnboardingView-D_PW4z5K.js → WorkflowOnboardingView-LXWyp2is.js} +1 -1
- package/dist/assets/{WorkflowPreview-DMBM5zJ7.js → WorkflowPreview-CsR9t5iY.js} +1 -1
- package/dist/assets/{WorkflowsView-DTJQfqt9.js → WorkflowsView-DQJAEKqk.js} +7 -7
- package/dist/assets/{easyAiWorkflowUtils-oy6hZxJE.js → easyAiWorkflowUtils-D3El0FyE.js} +1 -1
- package/dist/assets/{index-DuAsyBNI.css → index-DsHZ4yOE.css} +255 -36
- package/dist/assets/{index-DVhaXv7m.js → index-DvkbRfZN.js} +2558 -1951
- package/dist/assets/{polyfills-BN5TIqPj.js → polyfills-DNwgos9f.js} +650 -0
- package/dist/assets/{pushConnection.store-nnc6AEL8.js → pushConnection.store-5KniMGTZ.js} +1 -1
- package/dist/assets/{templateActions-BjByEL0H.js → templateActions-UGDN8R7F.js} +1 -1
- package/dist/assets/useBeforeUnload-BwgAu_Gm.js +43 -0
- package/dist/assets/{useBugReporting-Cgoz2JMv.js → useBugReporting-Bqv4ngy7.js} +2 -1
- package/dist/assets/{useCanvasOperations-BSKKylIT.css → useCanvasOperations-Bjf582lB.css} +12 -12
- package/dist/assets/{useCanvasOperations-CZCbgXks.js → useCanvasOperations-Cw1yjntX.js} +56 -25
- package/dist/assets/{useExecutionDebugging-Czm5h-sB.js → useExecutionDebugging-CTzUvS-m.js} +1 -1
- package/dist/assets/{useExecutionHelpers-qeNSBls3.js → useExecutionHelpers-ts_ANr0X.js} +1 -1
- package/dist/assets/{usePinnedData-9d5rr-Ll.js → usePinnedData-CAHmwr13.js} +1 -1
- package/dist/assets/{usePushConnection-C5MO_Lyn.js → usePushConnection-BcVRW8VB.js} +3 -3
- package/dist/assets/{useRunWorkflow-BeM5B2jX.js → useRunWorkflow-DZq8rmMi.js} +7 -4
- package/dist/assets/{useWorkflowActivate-CAW-Lrw6.js → useWorkflowActivate-y3uHMZeh.js} +1 -1
- package/dist/index.html +3 -3
- package/package.json +1 -1
- package/dist/assets/CollectionParameter-CS9E8rhZ.js +0 -4
- package/dist/assets/VariablesView-CkD1CK7k.js +0 -599
- package/dist/assets/useNodeViewVersionSwitcher-Z6V-jW5s.js +0 -93
package/dist/assets/{TestDefinitionListView-BnnmuS88.js → TestDefinitionListView-D3eg62pM.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, fx as _sfc_main$4, f as createCommentVNode, A as renderList, e as createBlock, a$ as resolveDynamicComponent, aP as _sfc_main$5, I as withModifiers, b as useRouter, hI as useAnnotationTagsStore, hU as useTestDefinitionStore, r as ref, a as useToast, o as onMounted, V as VIEWS, ae as MODAL_CONFIRM, ak as useMessage } from "./index-DvkbRfZN.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-D0gG8g0k.js → TestDefinitionRootView-DJdsaL4M.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-DvkbRfZN.js";
|
|
2
2
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3
3
|
__name: "TestDefinitionRootView",
|
|
4
4
|
setup(__props) {
|