Merge pull request #300 from YunoHost/fix-install-button

[Fix] install button in case of multi instance capability
This commit is contained in:
Alexandre Aubin 2020-05-16 00:31:38 +02:00 committed by GitHub
commit a43283e9fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -154,7 +154,7 @@
app.manifest.maintainer = extractMaintainer(app.manifest); app.manifest.maintainer = extractMaintainer(app.manifest);
var isWorking = (app.state === 'working' || app.state === "high-quality") && app.level > 0; var isWorking = (app.state === 'working' || app.state === "high-quality") && app.level > 0;
app.installable = (!app.installed || app.manifest.supports_multi_instance) app.installable = (!app.installed || app.manifest.multi_instance)
app.levelFormatted = isNaN(app.level) ? '?' : app.level; app.levelFormatted = isNaN(app.level) ? '?' : app.level;
app.levelColor = levelToColor(app.level); app.levelColor = levelToColor(app.level);