From 983d1e3fcf67d91926c1a38b9bf407d9e253c7b9 Mon Sep 17 00:00:00 2001 From: Mic Date: Thu, 2 Apr 2026 00:14:00 +0200 Subject: [PATCH] In the options page is shown if a special prompt is using a specific API. see #676 --- _locales/en/messages.json | 9 +++++ options/mzta-options-default.js | 2 +- options/mzta-options.css | 10 ++++- options/mzta-options.html | 18 ++++++--- options/mzta-options.js | 66 ++++++++++++++++++++++++++++++++- 5 files changed, 96 insertions(+), 9 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 23520466..66c771a6 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -1902,6 +1902,15 @@ "message": "To use this feature, you need an API integration rather than the ChatGPT Web Integration. You can define a specific API in the feature settings page by first checking the checkbox above and then clicking the button on the left.", "description": "" }, + "prefs_specific_api_indicator": { + "message": "[Using $1]", + "description": "Indicator near settings button when a special prompt uses a specific API.", + "placeholders": { + "1": { + "content": "$1" + } + } + }, "prefs_google_gemini_thinking_budget": { "message": "Thinking Budget", "description": "" diff --git a/options/mzta-options-default.js b/options/mzta-options-default.js index 8776c8b6..e1f2eddb 100644 --- a/options/mzta-options-default.js +++ b/options/mzta-options-default.js @@ -16,7 +16,7 @@ * along with this program. If not, see . */ -const special_prompts_with_integration = ['add_tags', 'spamfilter', 'summarize', 'get_calendar_event', 'get_task', 'translate']; +export const special_prompts_with_integration = ['add_tags', 'spamfilter', 'summarize', 'get_calendar_event', 'get_task', 'translate']; export const integration_options_config = { chatgpt: { diff --git a/options/mzta-options.css b/options/mzta-options.css index 0602e2f7..36de23ba 100644 --- a/options/mzta-options.css +++ b/options/mzta-options.css @@ -18,7 +18,6 @@ table#miczPrefs { font-size: 13px; padding: 10px; border-spacing: 0px; - } table#miczPrefs td{ @@ -101,6 +100,14 @@ div#miczTranslate{ font-weight: bold; } +.specific_api_indicator{ + display: none; + font-size: 0.75em; + margin-left: 0.5em; + padding: 0.15em 0.5em; + border-radius: 0.8em; +} + #no_sparks td{ text-align: center; padding: 1em !important; @@ -281,4 +288,5 @@ label:has(input[type="checkbox"]) { #thstats div{ background: rgb(41, 70, 70); } + } \ No newline at end of file diff --git a/options/mzta-options.html b/options/mzta-options.html index 139b9c8e..ba3391c7 100644 --- a/options/mzta-options.html +++ b/options/mzta-options.html @@ -172,7 +172,8 @@ __MSG_prefs_OptionText_add_tags__ -
+
+