mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[enh] New delete backup API
This commit is contained in:
parent
bec1798f8d
commit
c9c73b9c85
2 changed files with 2 additions and 2 deletions
2
src/dist/js/script.min.js
vendored
2
src/dist/js/script.min.js
vendored
|
@ -8187,7 +8187,7 @@ var app = Sammy('#main', function (sam) {
|
|||
y18n.t('backup'),
|
||||
y18n.t('confirm_delete', [c.params['archive']]),
|
||||
function(){
|
||||
c.api('/backup/'+c.params['archive'], function(data) {
|
||||
c.api('/backup/archives/'+c.params['archive'], function(data) {
|
||||
c.redirect('#/backup/'+ c.params['storage']);
|
||||
}, 'DELETE');
|
||||
},
|
||||
|
|
|
@ -1972,7 +1972,7 @@ var app = Sammy('#main', function (sam) {
|
|||
y18n.t('backup'),
|
||||
y18n.t('confirm_delete', [c.params['archive']]),
|
||||
function(){
|
||||
c.api('/backup/'+c.params['archive'], function(data) {
|
||||
c.api('/backup/archives/'+c.params['archive'], function(data) {
|
||||
c.redirect('#/backup/'+ c.params['storage']);
|
||||
}, 'DELETE');
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue