[enh] Display app label in installed app list.

This commit is contained in:
opi 2015-11-23 11:39:05 +01:00
parent f4e066b513
commit 88f55c3fc2
2 changed files with 7 additions and 3 deletions

File diff suppressed because one or more lines are too long

View file

@ -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);