in src/components/application/common/workflow-actions/action-release-on-hold.js [8:31]
async function releaseOnHold(event, workflow, callback, history, options) {
event.preventDefault();
event.stopPropagation();
const hide = message.loading('Starting...');
const request = new ReleaseHold(workflow.id);
await request.send({});
const {error} = request;
hide();
if (error) {
message.error(error);
} else {
const {from, mode} = options || {};
if (history) {
if (from) {
history.push(`/run/${workflow.id}/${mode || 'plain'}?from=${from}&launching=true`);
} else {
history.push(`/run/${workflow.id}/${mode || 'plain'}?launching=true`);
}
}
if (callback) {
callback(ACTION_RELEASE_ON_HOLD_KEY, {navigated: !!history, id: workflow.id});
}
}
}