[fix] Could not install app with no install arguments #39

This commit is contained in:
opi 2014-06-11 16:51:02 +02:00
parent d4a3e98fb3
commit 7f54fa7701

View file

@ -777,6 +777,8 @@ app = Sammy('#main', function (sam) {
c.api('/apps?raw', function(data) { // http://api.yunohost.org/#!/app/app_list_get_8
appData = data[c.params['app']];
// Loop through installation arguments
if (typeof appData.manifest.arguments.install !== 'undefined') {
$.each(appData.manifest.arguments.install, function(k, v) {
appData.manifest.arguments.install[k].allowedValues = [];
@ -822,6 +824,7 @@ app = Sammy('#main', function (sam) {
appData.manifest.arguments.install[k].ask['en']
;
});
}
// Multilingual description
appData.description = (typeof appData.manifest.description[y18n.locale] !== 'undefined') ?