mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
route fix
This commit is contained in:
parent
98030ecc9f
commit
37949b852c
1 changed files with 2 additions and 2 deletions
|
@ -454,9 +454,9 @@ app = Sammy('#main', function (sam) {
|
|||
|
||||
sam.get('#/apps/:app/uninstall', function (c) {
|
||||
if (confirm('Are you sure you want to uninstall '+ c.params['app'] +' ?')) {
|
||||
c.api('/app', function() { // http://api.yunohost.org/#!/user/user_delete_delete_4
|
||||
c.api('/app/'+ c.params['app'], function() { // http://api.yunohost.org/#!/app/app_remove_delete_4
|
||||
c.redirect('#/apps');
|
||||
}, 'DELETE', { 'app': c.params['app'] } );
|
||||
}, 'DELETE');
|
||||
} else {
|
||||
store.clear('slide');
|
||||
c.redirect('#/apps/'+ c.params['app']);
|
||||
|
|
Loading…
Add table
Reference in a new issue