fix(editor): Connect up new project viewer role to the FE (#9913)

This commit is contained in:
Csaba Tuncsik
2024-08-13 15:45:28 +02:00
committed by GitHub
parent 56c4692c94
commit 117e2d968f
56 changed files with 1482 additions and 1155 deletions

View File

@@ -128,7 +128,7 @@ async function fetchWorkflow() {
toast.showError(error, i18n.baseText('nodeView.showError.openWorkflow.title'));
}
}
workflow.value = workflowsStore.workflow;
workflow.value = workflowsStore.getWorkflowById(workflowId.value);
}
async function onAutoRefreshToggle(value: boolean) {
@@ -172,7 +172,10 @@ async function onUpdateFilters(newFilters: ExecutionFilterType) {
await executionsStore.initialize(workflowId.value);
}
async function onExecutionStop(id: string) {
async function onExecutionStop(id?: string) {
if (!id) {
return;
}
try {
await executionsStore.stopCurrentExecution(id);
@@ -190,7 +193,10 @@ async function onExecutionStop(id: string) {
}
}
async function onExecutionDelete(id: string) {
async function onExecutionDelete(id?: string) {
if (!id) {
return;
}
loading.value = true;
try {
const executionIndex = executions.value.findIndex((e: ExecutionSummary) => e.id === id);