constructor()

in images/web/src/app.js [41:76]


    constructor(name, type, displayName, description, icon, launchURL, defaultRepo, defaultTag, params, defaultNodeTiers, disableOptions) {
        this.broker = null;

        this.user = ""
        this.name = name;
        this.type = type;
        this.displayName = displayName;
        this.description = description;
        this.icon = icon;
        this.disableOptions = disableOptions;
        this.status = "checking";
        this.saveStatus = "idle";
        this.saveError = "";
        this.launchURL = launchURL;
        this.waitLaunch = false;

        this.params = params;
        this.paramValues = {};
        this.params.forEach((item) => {
            if (item.type == "bool") {
                this.paramValues[item.name] = (item.defaultValue === "true");
            }
        });

        this.defaultRepo = defaultRepo;
        this.defaultTag = defaultTag;
        this.imageRepo = (getStorageItem(this.name, "imageRepo", ""));
        this.imageTag = (getStorageItem(this.name, "imageTag", "latest"))
        this.imageTags = [];

        this.nodeTiers = defaultNodeTiers;
        this.nodeTier = "";

        this.checkAppTotal = 1;
        this.checkAppCount = 0;
    }