mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[enh] Upgrade just one app
This commit is contained in:
parent
b3a4419a3d
commit
8b726186ea
3 changed files with 33 additions and 4 deletions
|
@ -95,6 +95,29 @@
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Upgrade a specific apps
|
||||||
|
app.get('#/upgrade/apps/:app', function (c) {
|
||||||
|
c.confirm(
|
||||||
|
y18n.t('tools'),
|
||||||
|
// confirm_update_apps and confirm_update_packages
|
||||||
|
y18n.t('confirm_update_specific_app'),
|
||||||
|
function(){
|
||||||
|
c.api('/upgrade/apps?app='+c.params['app'].toLowerCase(),
|
||||||
|
function(data) {
|
||||||
|
// 'log' is a reserved name, maybe in handlebars
|
||||||
|
data.logs = data.log;
|
||||||
|
c.view('upgrade/upgrade', data);
|
||||||
|
}, 'PUT');
|
||||||
|
|
||||||
|
},
|
||||||
|
function(){
|
||||||
|
store.clear('slide');
|
||||||
|
c.redirect('#/update');
|
||||||
|
}
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
// Download SSL Certificate Authority
|
// Download SSL Certificate Authority
|
||||||
app.get('#/tools/ca', function (c) {
|
app.get('#/tools/ca', function (c) {
|
||||||
|
@ -172,4 +195,4 @@
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
|
|
@ -76,6 +76,7 @@
|
||||||
"confirm_uninstall": "Are you sure you want to uninstall %s ?",
|
"confirm_uninstall": "Are you sure you want to uninstall %s ?",
|
||||||
"confirm_update_apps": "Are you sure you want to update all applications?",
|
"confirm_update_apps": "Are you sure you want to update all applications?",
|
||||||
"confirm_update_packages": "Are you sure you want to update all packages?",
|
"confirm_update_packages": "Are you sure you want to update all packages?",
|
||||||
|
"confirm_update_specific_app": "Are you sure you want to update this application ?",
|
||||||
"confirm_upnp_enable": "Are you sure you want to enable UPnP?",
|
"confirm_upnp_enable": "Are you sure you want to enable UPnP?",
|
||||||
"confirm_upnp_disable": "Are you sure you want to disable UPnP?",
|
"confirm_upnp_disable": "Are you sure you want to disable UPnP?",
|
||||||
"connection": "Connection",
|
"connection": "Connection",
|
||||||
|
|
|
@ -42,9 +42,14 @@
|
||||||
{{#if apps}}
|
{{#if apps}}
|
||||||
<div class="list-group">
|
<div class="list-group">
|
||||||
{{#apps}}
|
{{#apps}}
|
||||||
<div class="list-group-item">
|
<div class="list-group-item"><div class="row"><div class="col-md-12">
|
||||||
<h3 class="list-group-item-heading">{{label}} <small>{{id}}</small></h3>
|
<div class="pull-left">
|
||||||
</div>
|
<h3 class="list-group-item-heading">{{label}} <small>{{id}}</small></h3>
|
||||||
|
</div>
|
||||||
|
<div class="pull-right">
|
||||||
|
<a href="#/upgrade/apps/{{id}}" class="btn btn-success">{{t 'system_upgrade_btn'}}</a>
|
||||||
|
</div>
|
||||||
|
</div></div></div>
|
||||||
{{/apps}}
|
{{/apps}}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-footer">
|
<div class="panel-footer">
|
||||||
|
|
Loading…
Reference in a new issue