Agent action icons fix (#1255)

* change icon opacity based on job status

* rid of magic numbers
This commit is contained in:
Aditya Bist
2018-04-25 12:20:46 -07:00
committed by GitHub
parent 7b76d929cd
commit 9e9862c6f0
3 changed files with 59 additions and 1 deletions

View File

@@ -131,6 +131,7 @@ export class JobHistoryComponent extends Disposable implements OnInit {
this._agentJobInfo = this._agentViewComponent.agentJobInfo;
if (!this.agentJobInfo) {
this.agentJobInfo = this._agentJobInfo;
this.setActions();
}
if (this._isVisible === false && this._tableContainer.nativeElement.offsetParent !== null) {
this._isVisible = true;
@@ -273,6 +274,12 @@ export class JobHistoryComponent extends Disposable implements OnInit {
return time.replace('T', ' ');
}
private setActions(): void {
let startIcon: HTMLElement = $('.icon-start').get(0);
let stopIcon: HTMLElement = $('.icon-stop').get(0);
AgentJobUtilities.getActionIconClassName(startIcon, stopIcon, this.agentJobInfo.currentExecutionStatus);
}
public get showSteps(): boolean {
return this._showSteps;
}