Don't use events, but call the loading controller itself

This commit is contained in:
Jean-Baptiste Bellet
2023-06-30 15:53:51 +02:00
parent 762b777995
commit ddfc60c85e
3 changed files with 16 additions and 12 deletions

View File

@@ -3,13 +3,6 @@ import ApplicationController from "./application_controller";
export default class extends ApplicationController {
connect() {
super.connect();
document.addEventListener("show-loading", this.showLoading);
document.addEventListener("hide-loading", this.hideLoading);
}
disconnect() {
document.removeEventListener("show-loading", this.showLoading);
document.removeEventListener("hide-loading", this.hideLoading);
}
hideLoading = () => {