mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[fix] Admin was asking confirmation for official apps
This commit is contained in:
parent
c3f60fbecd
commit
4fbf44f0b5
1 changed files with 5 additions and 1 deletions
|
@ -59,7 +59,7 @@
|
|||
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")
|
||||
if (dataraw[v['id']]['state'] === "validated")
|
||||
{
|
||||
dataraw[v['id']]['state'] = "official";
|
||||
}
|
||||
|
@ -489,6 +489,10 @@
|
|||
// App installation form
|
||||
app.get('#/apps/install/:app', function (c) {
|
||||
c.api('/apps?raw', function(data) { // http://api.yunohost.org/#!/app/app_list_get_8
|
||||
if (dataraw[v['id']]['state'] === "validated")
|
||||
{
|
||||
dataraw[v['id']]['state'] = "official";
|
||||
}
|
||||
var state_color = stateToColor(data[c.params['app']]['state']);
|
||||
var level_color = levelToColor(parseInt(data[c.params['app']]['level']));
|
||||
var is_safe_for_install_color = combineColors(state_color, level_color);
|
||||
|
|
Loading…
Reference in a new issue