mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 18:40:01 -03:30
always show launched by webhook details if there's a webhook guid
This commit is contained in:
parent
6b17e86f30
commit
5e9448a854
@ -266,15 +266,7 @@ function getLaunchedByDetails () {
|
||||
let tooltip;
|
||||
let value;
|
||||
|
||||
if (createdBy) {
|
||||
tooltip = strings.get('tooltips.USER');
|
||||
link = `/#/users/${createdBy.id}`;
|
||||
value = $filter('sanitize')(createdBy.username);
|
||||
} else if (relatedSchedule && jobTemplate) {
|
||||
tooltip = strings.get('tooltips.SCHEDULE');
|
||||
link = `/#/templates/job_template/${jobTemplate.id}/schedules/${schedule.id}`;
|
||||
value = $filter('sanitize')(schedule.name);
|
||||
} else if (webhookGUID && jobTemplate) {
|
||||
if (webhookGUID && jobTemplate) {
|
||||
tooltip = strings.get('tooltips.WEBHOOK_JOB_TEMPLATE');
|
||||
link = `/#/templates/job_template/${jobTemplate.id}`;
|
||||
value = strings.get('details.WEBHOOK');
|
||||
@ -282,6 +274,14 @@ function getLaunchedByDetails () {
|
||||
tooltip = strings.get('tooltips.WEBHOOK_WORKFLOW_JOB_TEMPLATE');
|
||||
link = `/#/templates/workflow_job_template/${workflowJobTemplate.id}`;
|
||||
value = strings.get('details.WEBHOOK');
|
||||
} else if (createdBy) {
|
||||
tooltip = strings.get('tooltips.USER');
|
||||
link = `/#/users/${createdBy.id}`;
|
||||
value = $filter('sanitize')(createdBy.username);
|
||||
} else if (relatedSchedule && jobTemplate) {
|
||||
tooltip = strings.get('tooltips.SCHEDULE');
|
||||
link = `/#/templates/job_template/${jobTemplate.id}/schedules/${schedule.id}`;
|
||||
value = $filter('sanitize')(schedule.name);
|
||||
} else {
|
||||
tooltip = null;
|
||||
link = null;
|
||||
|
||||
@ -177,7 +177,7 @@
|
||||
|
||||
<!-- CREATED BY DETAIL -->
|
||||
<div class="WorkflowResults-resultRow"
|
||||
ng-show="workflow.summary_fields.created_by.username">
|
||||
ng-show="workflow.summary_fields.created_by.username && !launched_by_webhook_link">
|
||||
<label class="WorkflowResults-resultRowLabel">
|
||||
{{ strings.labels.LAUNCHED_BY }}
|
||||
</label>
|
||||
@ -192,7 +192,7 @@
|
||||
|
||||
<!-- SCHEDULED BY DETAIL -->
|
||||
<div class="WorkflowResults-resultRow toggle-show"
|
||||
ng-show="workflow.summary_fields.schedule.name">
|
||||
ng-show="workflow.summary_fields.schedule.name && !launched_by_webhook_link">
|
||||
<label
|
||||
class="WorkflowResults-resultRowLabel">
|
||||
{{ strings.labels.LAUNCHED_BY }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user