26 lines
477 B
JavaScript
26 lines
477 B
JavaScript
"use strict";
|
|
|
|
class LoadingModal {
|
|
constructor() {
|
|
this.query_selector = '#modal-loading';
|
|
}
|
|
|
|
setVisible(option) {
|
|
if (option) {
|
|
this.element.classList.add('active');
|
|
} else {
|
|
this.element.classList.remove('active');
|
|
}
|
|
}
|
|
|
|
get element() {
|
|
return document.querySelector(this.querySelector);
|
|
}
|
|
|
|
get querySelector() {
|
|
return this.query_selector;
|
|
}
|
|
}
|
|
|
|
export { LoadingModal };
|