mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[fix] Send domain to delete as param. Need to cleanup route.
This commit is contained in:
parent
f3c3607558
commit
100fe4f60d
1 changed files with 2 additions and 1 deletions
|
@ -692,10 +692,11 @@ app = Sammy('#main', function (sam) {
|
||||||
|
|
||||||
sam.get('#/domains/:domain/delete', function (c) {
|
sam.get('#/domains/:domain/delete', function (c) {
|
||||||
if (confirm(y18n.t('confirm_delete', [c.params['domain']]))) {
|
if (confirm(y18n.t('confirm_delete', [c.params['domain']]))) {
|
||||||
|
params = {'domain' : c.params['domain']};
|
||||||
c.api('/domains/'+ c.params['domain'], function(data) { // http://api.yunohost.org/#!/domain/domain_remove_delete_3
|
c.api('/domains/'+ c.params['domain'], function(data) { // http://api.yunohost.org/#!/domain/domain_remove_delete_3
|
||||||
store.clear('slide');
|
store.clear('slide');
|
||||||
c.redirect('#/domains');
|
c.redirect('#/domains');
|
||||||
}, 'DELETE');
|
}, 'DELETE', params);
|
||||||
} else {
|
} else {
|
||||||
store.clear('slide');
|
store.clear('slide');
|
||||||
c.redirect('#/domains');
|
c.redirect('#/domains');
|
||||||
|
|
Loading…
Add table
Reference in a new issue