backend instead of frontend start stop
This commit is contained in:
parent
15aff9507a
commit
ecbc4b2673
@ -3175,16 +3175,13 @@ function savePrompt() {
|
|||||||
setTimeout(
|
setTimeout(
|
||||||
function() {
|
function() {
|
||||||
document.getElementById('saved-msg-feedback').style.display = "block";
|
document.getElementById('saved-msg-feedback').style.display = "block";
|
||||||
fetch("/stop", {
|
fetch("/savePromptStartStop", {
|
||||||
method: "GET",
|
method: "PUT",
|
||||||
});
|
});
|
||||||
}, 100);
|
}, 100);
|
||||||
setTimeout(
|
setTimeout(
|
||||||
function() {
|
function() {
|
||||||
document.getElementById('saved-msg-feedback').style.display = "none";
|
document.getElementById('saved-msg-feedback').style.display = "none";
|
||||||
fetch("/start", {
|
|
||||||
method: "PUT",
|
|
||||||
});
|
|
||||||
}, 3000);
|
}, 3000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user