backup functionality to frontend and tasks

This commit is contained in:
simon
2021-09-16 18:16:09 +07:00
parent e53cfc5a32
commit c657baca97
4 changed files with 35 additions and 5 deletions

View File

@@ -91,6 +91,17 @@ function manualImport() {
toReplace.appendChild(message);
}
function dbBackup() {
var payload = JSON.stringify({'db-backup': true});
sendPost(payload)
// clear button
var message = document.createElement('p');
message.innerText = 'backing up archive';
var toReplace = document.getElementById('db-backup');
toReplace.innerHTML = '';
toReplace.appendChild(message);
}
// player
function createPlayer(button) {
var mediaUrl = button.getAttribute('data-src');