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

Method toggleUsable

static/panes/tool.ts:191–201  ·  view source on GitHub ↗
(isUsable: boolean)

Source from the content-addressed store, hash-verified

189 }
190
191 toggleUsable(isUsable: boolean) {
192 if (isUsable) {
193 this.plainContentRoot.css('opacity', '1');
194 this.badLangToolbar.hide();
195 this.optionsToolbar.show();
196 } else {
197 this.plainContentRoot.css('opacity', '0.5');
198 this.optionsToolbar.hide();
199 this.badLangToolbar.show();
200 }
201 }
202
203 initArgs(state: ToolState & MonacoPaneState) {
204 const optionsChange = _.debounce((e: any) => {

Callers 2

onLanguageChangeMethod · 0.95
onCompileResultMethod · 0.95

Calls 2

hideMethod · 0.45
showMethod · 0.45

Tested by

no test coverage detected