From 0f8f45f8edf4ff0d72bed884f75ba1a8dec0d00c Mon Sep 17 00:00:00 2001 From: Mic Date: Wed, 16 Oct 2024 18:22:08 +0200 Subject: [PATCH] Renamed mail_body and html_body placeholders. fixes #164 --- _locales/en/messages.json | 4 ++-- js/mzta-menus.js | 8 ++++---- js/mzta-placeholders.js | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 4552126c..b6f79275 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -591,11 +591,11 @@ "message": "In case of login issues in the ThunderAI window, open ChatGPT in a new tab using the button on the right, log in, then close the tab and continue using ThunderAI.", "description": "" }, - "placeholder_mail_body": { + "placeholder_mail_text_body": { "message": "Mail body", "description": "" }, - "placeholder_html_body": { + "placeholder_mail_html_body": { "message": "HTML mail body", "description": "" }, diff --git a/js/mzta-menus.js b/js/mzta-menus.js index 071c7476..10e0b8cc 100644 --- a/js/mzta-menus.js +++ b/js/mzta-menus.js @@ -126,11 +126,11 @@ export class mzta_Menus { let curr_message = curr_messages.messages[0]; for(let currPH of currPHs){ switch(currPH.id){ - case 'mail_body': - finalSubs['mail_body'] = body_text; + case 'mail_text_body': + finalSubs['mail_text_body'] = body_text; break; - case 'html_body': - finalSubs['html_body'] = msg_text.html; + case 'mail_html_body': + finalSubs['mail_html_body'] = msg_text.html; break; case 'mail_subject': let mail_subject = await getMailSubject(tabs[0]); diff --git a/js/mzta-placeholders.js b/js/mzta-placeholders.js index 51a846a5..5c1fbff8 100644 --- a/js/mzta-placeholders.js +++ b/js/mzta-placeholders.js @@ -34,15 +34,15 @@ const defaultPlaceholders = [ { - id: 'mail_body', - name: "__MSG_placeholder_mail_body__", + id: 'mail_text_body', + name: "__MSG_placeholder_mail_text_body__", default_value: "", type: 0, is_default: "1", }, { - id: 'html_body', - name: "__MSG_placeholder_html_body__", + id: 'mail_html_body', + name: "__MSG_placeholder_mail_html_body__", default_value: "", type: 0, is_default: "1",