mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[fix] Use command-like arguments for update route.
This commit is contained in:
parent
60d402469a
commit
f4a638f887
1 changed files with 3 additions and 4 deletions
|
@ -997,10 +997,9 @@ app = Sammy('#main', function (sam) {
|
|||
c.redirect('#/tools/update');
|
||||
}
|
||||
if (confirm(y18n.t('confirm_update_type', [y18n.t('system_'+c.params['type']).toLowerCase()]))) {
|
||||
params = {
|
||||
'ignore_packages': (c.params['type'] == 'packages') ? false : true,
|
||||
'ignore_apps': (c.params['type'] == 'apps') ? false : true,
|
||||
}
|
||||
params = []
|
||||
if (c.params['type'] == 'packages') {params.push('ignore-apps');}
|
||||
if (c.params['type'] == 'apps') {params.push('ignore-packages');}
|
||||
c.api('/upgrade', function(data) {
|
||||
// 'log' is a reserved name, maybe in handlebars
|
||||
data.logs = data.log;
|
||||
|
|
Loading…
Add table
Reference in a new issue