Skip to content

Commit

Permalink
Update UI
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Yuan <[email protected]>
  • Loading branch information
juntao committed Dec 19, 2024
1 parent 5b695b3 commit 799e00c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion test/add_news.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
console.log(data);
if (data['status']) {
saved = true;
console.log("Set saved=true");
} else {
var em = document.getElementById("errorMsg");
em.innerHTML = data['message'];
Expand All @@ -120,11 +121,13 @@
em.style.display = "block";
});

console.log("Trying to start sending");
if (saved) {
console.log("Sending email now");
console.log("Sending message now");
fetch('https://pastor-insights-service.gaianet.ai/webhook/2iMg3xL5cGDgVoDjoNjE/send_message/' + form_json['passcode'] + '/' + form_json['profile'], {
method: 'GET',
credentials: "include"

}).then(function(response) {
return response.json();

Expand Down
2 changes: 1 addition & 1 deletion test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
body: JSON.stringify(form_json),

}).then(function(response) {
}).then(function(response) {
return response.json();

}).then(function(data) {
Expand Down

0 comments on commit 799e00c

Please sign in to comment.