mirror of
https://github.com/ansible/awx.git
synced 2026-05-16 22:07:36 -02:30
Add support for in progress jobs and omit expand
* Any event received by the stream service will start rendering (instead of JOB_START events only) * Expand/collapse only shown for static results
This commit is contained in:
committed by
Jake McDermott
parent
033314e4f6
commit
a23e5e920f
@@ -22,11 +22,11 @@ const ansi = new Ansi();
|
||||
const entities = new Entities.AllHtmlEntities();
|
||||
|
||||
function JobRenderService ($q, $sce, $window) {
|
||||
this.init = ({ compile, apply, get }) => {
|
||||
this.init = ({ compile, apply, isStreamActive }) => {
|
||||
this.parent = null;
|
||||
this.record = {};
|
||||
this.el = $(ELEMENT_TBODY);
|
||||
this.hooks = { get, compile, apply };
|
||||
this.hooks = { isStreamActive, compile, apply };
|
||||
};
|
||||
|
||||
this.sortByLineNumber = (a, b) => {
|
||||
@@ -155,7 +155,7 @@ function JobRenderService ($q, $sce, $window) {
|
||||
}
|
||||
|
||||
if (current) {
|
||||
if (current.isParent && current.line === ln) {
|
||||
if (!this.hooks.isStreamActive() && current.isParent && current.line === ln) {
|
||||
id = current.uuid;
|
||||
tdToggle = `<td class="at-Stdout-toggle" ng-click="vm.toggle('${id}')"><i class="fa fa-angle-down can-toggle"></i></td>`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user