appcatalog: consider app lvl8 as high quality

This commit is contained in:
axolotle 2022-10-18 20:34:28 +02:00
parent a90cc5f160
commit cff734a76c

View file

@ -270,11 +270,10 @@ export default {
for (const key in data.apps) { for (const key in data.apps) {
const app = data.apps[key] const app = data.apps[key]
app.isInstallable = !app.installed || app.manifest.integration.multi_instance app.isInstallable = !app.installed || app.manifest.integration.multi_instance
app.working = app.state === 'working' app.working = app.state === 'working' && app.level > 0
app.decent_quality = app.working && app.level > 4 app.decent_quality = app.working && app.level > 4
app.color = app.high_quality || app.level > 4 app.high_quality = app.working && app.level >= 8
? 'success' app.color = app.decent_quality ? 'success' : app.working ? 'warning' : 'danger'
: app.working ? 'warning' : 'danger'
if (app.working && app.level <= 4) { if (app.working && app.level <= 4) {
app.state = 'lowquality' app.state = 'lowquality'
} }