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

Method startLoading

js/inserter.js:256–268  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

254 }
255
256 startLoading() {
257 this.loading = true;
258 if (this.main.toolByName.open.buttonId) {
259 const btn = this.main.getElemByIdSafe(this.main.toolByName.open.buttonId);
260 if (btn) {
261 btn.setAttribute('disabled', 'true');
262 }
263 const icon = this.main.doc.querySelector(`#${this.main.toolByName.open.buttonId} > i`);
264 if (icon) {
265 icon.className = 'ptro-icon ptro-icon-loading ptro-spinning';
266 }
267 }
268 }
269
270 finishLoading() {
271 if (this.main.toolByName.open.buttonId) {

Callers 1

handleOpenMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected