All Downloads are FREE. Search and download functionalities are using the official Maven repository.

js.factoryEditing.HttpClientStatusReporter.js Maven / Gradle / Ivy

There is a newer version: 4.0.2
Show newest version
export class HttpClientStatusReporter {
    setRootModel(rootModel) {
        this.rootModel = rootModel;
    }
    showWaitAnimation() {
        if (!this.rootModel) {
            return;
        }
        this.timer = setTimeout(() => {
            this.rootModel.showWaitAnimation();
        }, 1000);
    }
    hideWaitAnimation() {
        if (this.timer) {
            clearTimeout(this.timer);
        }
        if (!this.rootModel) {
            return;
        }
        this.rootModel.hideWaitAnimation();
    }
    reportError(error) {
        if (!this.rootModel) {
            console.log(error);
            return;
        }
        this.rootModel.reportError(error);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy