mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
Display 'official' instead of 'validated'
This commit is contained in:
parent
c6ce7b9eff
commit
6692227f6d
1 changed files with 6 additions and 2 deletions
|
@ -32,7 +32,7 @@
|
|||
}
|
||||
|
||||
function stateToColor(state) {
|
||||
if (state === "working" || state === "validated") {
|
||||
if (state === "working" || state === "official") {
|
||||
return 'success';
|
||||
}
|
||||
else {
|
||||
|
@ -58,9 +58,13 @@
|
|||
c.api('/apps?raw', function (dataraw) { // http://api.yunohost.org/#!/app/app_list_get_8
|
||||
var apps = []
|
||||
$.each(data['apps'], function(k, v) {
|
||||
if (dataraw[v['id']]['state'] === "validated")
|
||||
{
|
||||
dataraw[v['id']]['state'] = "official";
|
||||
}
|
||||
var state = dataraw[v['id']]['state'];
|
||||
var levelFormatted = parseInt(dataraw[v['id']]['level']);
|
||||
var isWorking = (state === 'working' || state === 'validated') && levelFormatted > 0;
|
||||
var isWorking = (state === 'working' || state === 'official') && levelFormatted > 0;
|
||||
// Keep only the first instance of each app and remove community not working apps
|
||||
if (!v['id'].match(/__[0-9]{1,5}$/) && (dataraw[v['id']]['repository'] === 'yunohost' || state !== 'notworking')) {
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue