|
|
@@ -256,9 +256,7 @@
|
|
|
<div class="row" style="margin-top:8px">
|
|
|
<label class="lbl">service</label>
|
|
|
<select id="chat-service"></select>
|
|
|
- <button onclick="doChatReady()" style="margin-left:6px">GET ready</button>
|
|
|
</div>
|
|
|
- <div class="result" id="res-chat-ready"></div>
|
|
|
<div class="row" style="margin-top:8px">
|
|
|
<label class="lbl">chat_id</label>
|
|
|
<input id="chat-id" type="text" placeholder="thread / reservation id">
|
|
|
@@ -649,13 +647,6 @@
|
|
|
show('res-chat-templates', await api('GET', '/chat/templates'));
|
|
|
}
|
|
|
|
|
|
- async function doChatReady() {
|
|
|
- const service = document.getElementById('chat-service').value;
|
|
|
- if (!service) return;
|
|
|
- pending('res-chat-ready');
|
|
|
- show('res-chat-ready', await api('GET', `/chat/${service}/ready`));
|
|
|
- }
|
|
|
-
|
|
|
async function doChatGet() {
|
|
|
const service = document.getElementById('chat-service').value;
|
|
|
const chatId = document.getElementById('chat-id').value.trim();
|