mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 20:54:07 -08:00
fix(editor): Handling errors when opening settings and executions (#3877)
This commit is contained in:
parent
f782bcd52d
commit
762b422488
|
@ -100,14 +100,16 @@
|
|||
</n8n-tooltip>
|
||||
|
||||
<el-dropdown trigger="click" @command="handleRetryClick">
|
||||
<n8n-icon-button
|
||||
v-if="scope.row.stoppedAt !== undefined && !scope.row.finished && scope.row.retryOf === undefined && scope.row.retrySuccessId === undefined && !scope.row.waitTill"
|
||||
:type="scope.row.stoppedAt === null ? 'warning': 'danger'"
|
||||
class="ml-3xs"
|
||||
size="mini"
|
||||
:title="$locale.baseText('executionsList.retryExecution')"
|
||||
icon="redo"
|
||||
/>
|
||||
<span class="retry-button">
|
||||
<n8n-icon-button
|
||||
v-if="scope.row.stoppedAt !== undefined && !scope.row.finished && scope.row.retryOf === undefined && scope.row.retrySuccessId === undefined && !scope.row.waitTill"
|
||||
:type="scope.row.stoppedAt === null ? 'warning': 'danger'"
|
||||
class="ml-3xs"
|
||||
size="mini"
|
||||
:title="$locale.baseText('executionsList.retryExecution')"
|
||||
icon="redo"
|
||||
/>
|
||||
</span>
|
||||
<el-dropdown-menu slot="dropdown">
|
||||
<el-dropdown-item :command="{command: 'currentlySaved', row: scope.row}">
|
||||
{{ $locale.baseText('executionsList.retryWithCurrentlySavedWorkflow') }}
|
||||
|
|
|
@ -2232,27 +2232,31 @@ export default mixins(
|
|||
__removeConnectionByConnectionInfo (info: OnConnectionBindInfo, removeVisualConnection = false) {
|
||||
// @ts-ignore
|
||||
const sourceInfo = info.sourceEndpoint.getParameters();
|
||||
const sourceNode = this.$store.getters.getNodeById(sourceInfo.nodeId);
|
||||
// @ts-ignore
|
||||
const targetInfo = info.targetEndpoint.getParameters();
|
||||
const targetNode = this.$store.getters.getNodeById(targetInfo.nodeId);
|
||||
|
||||
const connectionInfo = [
|
||||
{
|
||||
node: this.$store.getters.getNodeById(sourceInfo.nodeId).name,
|
||||
type: sourceInfo.type,
|
||||
index: sourceInfo.index,
|
||||
},
|
||||
{
|
||||
node: this.$store.getters.getNodeById(targetInfo.nodeId).name,
|
||||
type: targetInfo.type,
|
||||
index: targetInfo.index,
|
||||
},
|
||||
] as [IConnection, IConnection];
|
||||
if (sourceNode && targetNode) {
|
||||
const connectionInfo = [
|
||||
{
|
||||
node: sourceNode.name,
|
||||
type: sourceInfo.type,
|
||||
index: sourceInfo.index,
|
||||
},
|
||||
{
|
||||
node: targetNode.name,
|
||||
type: targetInfo.type,
|
||||
index: targetInfo.index,
|
||||
},
|
||||
] as [IConnection, IConnection];
|
||||
|
||||
if (removeVisualConnection) {
|
||||
this.__deleteJSPlumbConnection(info.connection);
|
||||
if (removeVisualConnection) {
|
||||
this.__deleteJSPlumbConnection(info.connection);
|
||||
}
|
||||
|
||||
this.$store.commit('removeConnection', { connection: connectionInfo });
|
||||
}
|
||||
|
||||
this.$store.commit('removeConnection', { connection: connectionInfo });
|
||||
},
|
||||
async duplicateNode (nodeName: string) {
|
||||
if (this.editAllowedCheck() === false) {
|
||||
|
|
Loading…
Reference in a new issue