link to workflow playbook node route from workflow viewer

This commit is contained in:
Jake McDermott
2018-12-14 19:22:23 -05:00
parent a5c4350695
commit c8b15005b4

View File

@@ -769,7 +769,7 @@ export default ['$state','moment', '$timeout', '$window', '$filter', 'Rest', 'Ge
let href = ""; let href = "";
if (d.job) { if (d.job) {
if(d.job.type === 'job') { if(d.job.type === 'job') {
href = `/#/jobs/playbook/${d.job.id}`; href = `/#/workflow_node_playbook_results/${d.job.id}`;
} }
else if(d.job.type === 'inventory_update') { else if(d.job.type === 'inventory_update') {
href = `/#/jobs/inventory/${d.job.id}`; href = `/#/jobs/inventory/${d.job.id}`;
@@ -1070,7 +1070,7 @@ export default ['$state','moment', '$timeout', '$window', '$filter', 'Rest', 'Ge
let href = ""; let href = "";
if (d.job) { if (d.job) {
if(d.job.type === 'job') { if(d.job.type === 'job') {
href = `/#/jobs/playbook/${d.job.id}`; href = `/#/workflow_node_playbook_results/${d.job.id}`;
} }
else if(d.job.type === 'inventory_update') { else if(d.job.type === 'inventory_update') {
href = `/#/jobs/inventory/${d.job.id}`; href = `/#/jobs/inventory/${d.job.id}`;