mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-12 03:50:22 +00:00
Don't use events, but call the loading controller itself
This commit is contained in:
@@ -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 = () => {
|
||||
|
||||
Reference in New Issue
Block a user