mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
Merge pull request #172 from YunoHost/enh-add-ability-to-upgrade-one-app
[enh] Upgrade just one app
This commit is contained in:
commit
713a3d59a5
3 changed files with 29 additions and 4 deletions
|
@ -95,6 +95,27 @@
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Upgrade a specific apps
|
||||||
|
app.get('#/upgrade/apps/:app', function (c) {
|
||||||
|
c.confirm(
|
||||||
|
y18n.t('tools'),
|
||||||
|
y18n.t('confirm_update_specific_app', [c.params['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 +193,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 %s?",
|
||||||
"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",
|
||||||
|
@ -255,6 +256,8 @@
|
||||||
"system_update": "System update",
|
"system_update": "System update",
|
||||||
"system_upgrade": "System upgrade",
|
"system_upgrade": "System upgrade",
|
||||||
"system_upgrade_btn": "Upgrade",
|
"system_upgrade_btn": "Upgrade",
|
||||||
|
"system_upgrade_all_applications_btn": "Upgrade all applications",
|
||||||
|
"system_upgrade_all_packages_btn": "Upgrade all packages",
|
||||||
"tcp": "TCP",
|
"tcp": "TCP",
|
||||||
"time_since_update": "Time since update: ",
|
"time_since_update": "Time since update: ",
|
||||||
"tools": "Tools",
|
"tools": "Tools",
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
{{/packages}}
|
{{/packages}}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-footer">
|
<div class="panel-footer">
|
||||||
<a href="#/upgrade/packages" class="btn btn-success">{{t 'system_upgrade_btn'}}</a>
|
<a href="#/upgrade/packages" class="btn btn-success">{{t 'system_upgrade_all_packages_btn'}}</a>
|
||||||
</div>
|
</div>
|
||||||
{{else}}
|
{{else}}
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
|
@ -42,13 +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 clearfix">
|
||||||
|
<a href="#/upgrade/apps/{{id}}" class="btn btn-success pull-right">{{t 'system_upgrade_btn'}}</a>
|
||||||
<h3 class="list-group-item-heading">{{label}} <small>{{id}}</small></h3>
|
<h3 class="list-group-item-heading">{{label}} <small>{{id}}</small></h3>
|
||||||
</div>
|
</div>
|
||||||
{{/apps}}
|
{{/apps}}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-footer">
|
<div class="panel-footer">
|
||||||
<a href="#/upgrade/apps" class="btn btn-success">{{t 'system_upgrade_btn'}}</a>
|
<a href="#/upgrade/apps" class="btn btn-success">{{t 'system_upgrade_all_applications_btn'}}</a>
|
||||||
</div>
|
</div>
|
||||||
{{else}}
|
{{else}}
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
|
|
Loading…
Add table
Reference in a new issue