web/admin: open flow execution in new tab

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-04-06 16:56:03 +02:00
parent e903582f96
commit 4b2119510c
1 changed files with 2 additions and 1 deletions

View File

@ -85,7 +85,8 @@ export class FlowViewPage extends LitElement {
new FlowsApi(DEFAULT_CONFIG).flowsInstancesExecute({
slug: this.flow.slug
}).then(link => {
window.location.assign(`${link.link}?next=/%23${window.location.href}`);
const finalURL = `${link.link}?next=/%23${window.location.href}`;
window.open(finalURL, '_blank');
});
}}>
${t`Execute`}