mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[enh] Use new --installed option for main apps list.
This commit is contained in:
parent
b3c63c93b6
commit
683e92b525
1 changed files with 2 additions and 7 deletions
|
@ -10,13 +10,8 @@
|
|||
|
||||
// List installed apps
|
||||
app.get('#/apps', function (c) {
|
||||
c.api('/apps', function(data) { // http://api.yunohost.org/#!/app/app_list_get_8
|
||||
// Keep only installed apps
|
||||
apps = [];
|
||||
$.each(data['apps'], function(k, v) {
|
||||
if (v['installed']) apps.push(v);
|
||||
});
|
||||
|
||||
c.api('/apps?installed', function(data) { // http://api.yunohost.org/#!/app/app_list_get_8
|
||||
apps = data['apps'];
|
||||
c.arraySortById(apps);
|
||||
c.view('app/app_list', {apps: apps});
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue