mirror of
https://github.com/ansible/awx.git
synced 2026-05-16 22:07:36 -02:30
enable expanded details for dynamic host events
This commit is contained in:
@@ -259,17 +259,17 @@ function JobRenderService ($q, $sce, $window) {
|
|||||||
return this.records[event.counter];
|
return this.records[event.counter];
|
||||||
}
|
}
|
||||||
|
|
||||||
let isHost = false;
|
let isClickable = false;
|
||||||
if (typeof event.host === 'number') {
|
if (typeof event.host === 'number' || event.event_data && event.event_data.res) {
|
||||||
isHost = true;
|
isClickable = true;
|
||||||
} else if (event.type === 'project_update_event' &&
|
} else if (event.type === 'project_update_event' &&
|
||||||
event.event !== 'runner_on_skipped' &&
|
event.event !== 'runner_on_skipped' &&
|
||||||
event.event_data.host) {
|
event.event_data.host) {
|
||||||
isHost = true;
|
isClickable = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
const record = {
|
const record = {
|
||||||
isHost,
|
isClickable,
|
||||||
id: event.id,
|
id: event.id,
|
||||||
line: event.start_line + 1,
|
line: event.start_line + 1,
|
||||||
name: event.event,
|
name: event.event,
|
||||||
@@ -369,7 +369,7 @@ function JobRenderService ($q, $sce, $window) {
|
|||||||
tdToggle = `<div class="at-Stdout-toggle" ng-click="vm.toggleCollapse('${id}')"><i class="fa ${icon} can-toggle"></i></div>`;
|
tdToggle = `<div class="at-Stdout-toggle" ng-click="vm.toggleCollapse('${id}')"><i class="fa ${icon} can-toggle"></i></div>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (record.isHost) {
|
if (record.isClickable) {
|
||||||
tdEvent = `<div class="at-Stdout-event--host" ng-click="vm.showHostDetails('${record.id}', '${record.uuid}')"><span ng-non-bindable>${content}</span></div>`;
|
tdEvent = `<div class="at-Stdout-event--host" ng-click="vm.showHostDetails('${record.id}', '${record.uuid}')"><span ng-non-bindable>${content}</span></div>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user