mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[enh] Display app label in installed app list.
This commit is contained in:
parent
f4e066b513
commit
88f55c3fc2
2 changed files with 7 additions and 3 deletions
4
src/dist/js/script.min.js
vendored
4
src/dist/js/script.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -1040,7 +1040,11 @@ var app = Sammy('#main', function (sam) {
|
||||||
// Keep only installed apps
|
// Keep only installed apps
|
||||||
data2 = { 'apps': [], 'installed_apps': true };
|
data2 = { 'apps': [], 'installed_apps': true };
|
||||||
$.each(data['apps'], function(k, v) {
|
$.each(data['apps'], function(k, v) {
|
||||||
if (v['installed']) data2['apps'].push(v);
|
if (v['installed']) {
|
||||||
|
// On installed app, override name with current label
|
||||||
|
v.name = (v.label) ? v.label : v.name;
|
||||||
|
data2['apps'].push(v);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
c.arraySortById(data2.apps);
|
c.arraySortById(data2.apps);
|
||||||
|
|
Loading…
Add table
Reference in a new issue