Skip to content

Commit 799e00c

Browse files
committed
Update UI
Signed-off-by: Michael Yuan <michael@secondstate.io>
1 parent 5b695b3 commit 799e00c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

test/add_news.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@
108108
console.log(data);
109109
if (data['status']) {
110110
saved = true;
111+
console.log("Set saved=true");
111112
} else {
112113
var em = document.getElementById("errorMsg");
113114
em.innerHTML = data['message'];
@@ -120,11 +121,13 @@
120121
em.style.display = "block";
121122
});
122123

124+
console.log("Trying to start sending");
123125
if (saved) {
124-
console.log("Sending email now");
126+
console.log("Sending message now");
125127
fetch('https://pastor-insights-service.gaianet.ai/webhook/2iMg3xL5cGDgVoDjoNjE/send_message/' + form_json['passcode'] + '/' + form_json['profile'], {
126128
method: 'GET',
127129
credentials: "include"
130+
128131
}).then(function(response) {
129132
return response.json();
130133

test/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
},
3131
body: JSON.stringify(form_json),
3232

33-
}).then(function(response) {
33+
}).then(function(response) {
3434
return response.json();
3535

3636
}).then(function(data) {

0 commit comments

Comments
 (0)