fix agent types (#13340)

This commit is contained in:
Aditya Bist
2020-11-10 13:38:57 -08:00
committed by GitHub
parent d7a6b55f82
commit 8bbcfff119
5 changed files with 42 additions and 57 deletions

View File

@@ -57,11 +57,7 @@ export class JobManagementUtilities {
}
public static setRunnable(icon: HTMLElement, index: number) {
let temp = icon.className as unknown;
let classNameArr = temp as [];
if (classNameArr.find(x => x === 'non-runnable')) {
icon.className = icon.className.slice(0, index);
}
icon.classList.remove('non-runnable');
}
public static getActionIconClassName(startIcon: HTMLElement, stopIcon: HTMLElement, executionStatus: number) {