MCPcopy Create free account
hub / github.com/devforth/painterro / setToolEnabled

Method setToolEnabled

js/main.js:826–835  ·  view source on GitHub ↗
(tool, state)

Source from the content-addressed store, hash-verified

824 }
825
826 setToolEnabled(tool, state) {
827 if (tool.buttonId) {
828 const btn = this.getElemByIdSafe(tool.buttonId);
829 if (state) {
830 btn.removeAttribute('disabled');
831 } else {
832 btn.setAttribute('disabled', 'true');
833 }
834 }
835 }
836 getAsUri(type, quality) {
837 let realQuality = quality;
838 if (realQuality === undefined) {

Callers 1

constructorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected