MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / setStatusIcon

Method setStatusIcon

static/panes/explain-view.ts:386–393  ·  view source on GitHub ↗
(state: StatusIconState)

Source from the content-addressed store, hash-verified

384 }
385
386 private setStatusIcon(state: StatusIconState): void {
387 const config = statusIconConfigs[state];
388 this.statusIcon
389 .removeClass()
390 .addClass(config.classes)
391 .css('color', config.color)
392 .attr('aria-label', config.ariaLabel);
393 }
394
395 private showLoading(): void {
396 this.setStatusIcon(StatusIconState.Loading);

Callers 4

showLoadingMethod · 0.95
hideLoadingMethod · 0.95
showSuccessMethod · 0.95
showErrorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected