Fix support log x button still downloading

This commit is contained in:
amcmanu3 2023-11-30 12:50:50 -05:00
parent 8bad0fb0a9
commit c5c025ca8c

View File

@ -384,18 +384,21 @@
if (x) { if (x) {
x.remove() x.remove()
} }
bootbox.alert({ bootbox.confirm({
title: "{{ translate('notify', 'downloadLogs', data['lang']) }}", title: "{{ translate('notify', 'downloadLogs', data['lang']) }}",
message: "{{ translate('notify', 'finishedPreparing', data['lang']) }}", message: "{{ translate('notify', 'finishedPreparing', data['lang']) }}",
buttons: { buttons: {
ok: { confirm: {
label: 'Download', label: 'Download',
className: 'btn-info' className: 'btn-info'
} }
}, },
callback: function () { callback: function (result) {
console.log("in callback") if (result){
location.href = "/panel/download_support_package"; location.href = "/panel/download_support_package";
}else {
bootbox.close;
}
} }
}); });
}); });