feat(paradizweb): show explicit booking-doc ready message in web chat
This commit is contained in:
BIN
integrations/paradiz-web/dist/paradiz-web-chat-1.0.9.zip
vendored
Normal file
BIN
integrations/paradiz-web/dist/paradiz-web-chat-1.0.9.zip
vendored
Normal file
Binary file not shown.
@@ -113,6 +113,7 @@
|
||||
const b64 = data?.data?.booking_doc_base64 || '';
|
||||
const name = data?.data?.booking_doc_name || 'booking.docx';
|
||||
if(b64){
|
||||
addMsg('Лист предварительной брони сформирован. Скачайте файл ниже 👇', 'bot');
|
||||
const a = document.createElement('a');
|
||||
a.href = 'data:application/vnd.openxmlformats-officedocument.wordprocessingml.document;base64,' + b64;
|
||||
a.download = name;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* Plugin Name: Paradiz Web Chat
|
||||
* Description: Чат-плагин для сайта vparadize.ru, который отправляет вопросы в изолированного агента OpenClaw paradizweb.
|
||||
* Version: 1.0.8
|
||||
* Version: 1.0.9
|
||||
* Author: EVA
|
||||
*/
|
||||
|
||||
@@ -57,7 +57,7 @@ class ParadizWebChat {
|
||||
}
|
||||
|
||||
public function enqueue_assets() {
|
||||
wp_register_script('paradiz-web-chat', plugins_url('chat.js', __FILE__), [], '1.0.8', true);
|
||||
wp_register_script('paradiz-web-chat', plugins_url('chat.js', __FILE__), [], '1.0.9', true);
|
||||
wp_localize_script('paradiz-web-chat', 'ParadizWebChatCfg', [
|
||||
'ajaxUrl' => admin_url('admin-ajax.php'),
|
||||
'nonce' => wp_create_nonce('paradiz_web_chat_nonce')
|
||||
|
||||
Reference in New Issue
Block a user