Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
update(domNode, element) {
this.attachWorkunit();
switch (this._wu.StateID) {
case WUStateID.Blocked:
case WUStateID.Wait:
case WUStateID.Scheduled:
case WUStateID.UploadingFiled:
this.updateVertexStatus(1);
break;
case WUStateID.Compiling:
this.updateVertexStatus(2, true);
break;
case WUStateID.Submitted:
this.updateVertexStatus(1, true);
break;
case WUStateID.Compiled:
this.updateVertexStatus(2);
break;
case WUStateID.Aborting:
case WUStateID.Running:
this.updateVertexStatus(3, true);
break;
case WUStateID.Aborted:
case WUStateID.Archived:
case WUStateID.Completed:
this.updateVertexStatus(4);
update(domNode, element) {
this.attachWorkunit();
switch (this._wu.StateID) {
case WUStateID.Blocked:
case WUStateID.Wait:
case WUStateID.Scheduled:
case WUStateID.UploadingFiled:
this.updateVertexStatus(1);
break;
case WUStateID.Compiling:
this.updateVertexStatus(2, true);
break;
case WUStateID.Submitted:
this.updateVertexStatus(1, true);
break;
case WUStateID.Compiled:
this.updateVertexStatus(2);
break;
case WUStateID.Aborting:
case WUStateID.Running:
this.updateVertexStatus(3, true);
break;
case WUStateID.Aborted:
case WUStateID.Archived:
case WUStateID.Completed:
this.updateVertexStatus(4);