mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[fix] Could not install app with no install arguments #39
This commit is contained in:
parent
d4a3e98fb3
commit
7f54fa7701
1 changed files with 44 additions and 41 deletions
|
@ -777,6 +777,8 @@ app = Sammy('#main', function (sam) {
|
||||||
c.api('/apps?raw', function(data) { // http://api.yunohost.org/#!/app/app_list_get_8
|
c.api('/apps?raw', function(data) { // http://api.yunohost.org/#!/app/app_list_get_8
|
||||||
appData = data[c.params['app']];
|
appData = data[c.params['app']];
|
||||||
|
|
||||||
|
// Loop through installation arguments
|
||||||
|
if (typeof appData.manifest.arguments.install !== 'undefined') {
|
||||||
$.each(appData.manifest.arguments.install, function(k, v) {
|
$.each(appData.manifest.arguments.install, function(k, v) {
|
||||||
appData.manifest.arguments.install[k].allowedValues = [];
|
appData.manifest.arguments.install[k].allowedValues = [];
|
||||||
|
|
||||||
|
@ -822,6 +824,7 @@ app = Sammy('#main', function (sam) {
|
||||||
appData.manifest.arguments.install[k].ask['en']
|
appData.manifest.arguments.install[k].ask['en']
|
||||||
;
|
;
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// Multilingual description
|
// Multilingual description
|
||||||
appData.description = (typeof appData.manifest.description[y18n.locale] !== 'undefined') ?
|
appData.description = (typeof appData.manifest.description[y18n.locale] !== 'undefined') ?
|
||||||
|
|
Loading…
Reference in a new issue