feat: navigate to next page

This commit is contained in:
karishmas6
2024-06-08 00:38:00 +05:30
parent d078892f71
commit 3a6402b2fd

View File

@@ -536,5 +536,16 @@ export class WorkflowGenerator {
this.socket.emit('workflow', this.workflowRecord);
}
public onGoForward = (newUrl: string) => {
//it's safe to always add a go forward action to the first rule in the workflow
this.workflowRecord.workflow[0].what.push({
action: 'goForward',
args: [{waitUntil: 'commit'}],
});
this.notifyUrlChange(newUrl);
this.socket.emit('workflow', this.workflowRecord);
}
}