add local snapshot to repo; add Dockerfile; update docker-compose.yml;
This commit is contained in:
parent
bc74ef9cbd
commit
d55d7832bc
10 changed files with 2471532 additions and 2 deletions
|
@ -72,6 +72,19 @@ function enableButtons() {
|
|||
document.getElementById("toggleButton").disabled = false;
|
||||
}
|
||||
|
||||
document.getElementById("localButton").onclick = function () {
|
||||
alert("Graph reset initiated.");
|
||||
disableButtons(); // Disable buttons when the request is initiated
|
||||
fetch('/load-local-snapshot',{cache: "no-store"}).then(response => {
|
||||
if (response.ok) {
|
||||
alert("Graph reset OK.");
|
||||
} else {
|
||||
alert("Failed to initiate graph reset.");
|
||||
}
|
||||
enableButtons(); // Enable buttons when the request is completed
|
||||
});
|
||||
};
|
||||
|
||||
document.getElementById("resetButton").onclick = function () {
|
||||
alert("Graph reset initiated.");
|
||||
disableButtons(); // Disable buttons when the request is initiated
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue