From decb529cb0a74779282fc09550b2a7ad291eecb3 Mon Sep 17 00:00:00 2001 From: mic Date: Sat, 11 Jan 2025 23:09:48 +0100 Subject: [PATCH] showing a warning message if sparks is not present. see #182 --- _locales/en/messages.json | 8 ++++++++ options/mzta-options.css | 9 +++++++++ options/mzta-options.html | 6 ++++++ options/mzta-options.js | 9 ++++++--- 4 files changed, 29 insertions(+), 3 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index fab877f8..bc62e80a 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -990,5 +990,13 @@ "prefs_OptionText_GetCalendarEvent_infoline2": { "message": "You can change the prompt as you wish, but the response received from the AI must be in JSON format as specified in the default prompt!", "description": "" + }, + "prefs_OptionText_get_calendar_event_Sparks_not_present": { + "message": "To use the calendar event feature, please install the ThunderAI Sparks addon.", + "description": "" + }, + "prefs_OptionText_download_now": { + "message": "Download ThunderAI Sparks now!", + "description": "" } } \ No newline at end of file diff --git a/options/mzta-options.css b/options/mzta-options.css index e3680a08..a34037e3 100644 --- a/options/mzta-options.css +++ b/options/mzta-options.css @@ -118,6 +118,12 @@ tr.conntype_google_gemini_api, tr.conntype_google_gemini_api2{ font-style: italic; } +#no_sparks td{ + text-align: center; + padding: 1em !important; + background: #bbf7f1; +} + textarea.option-textarea{ width: -moz-available; height: 10em; @@ -244,4 +250,7 @@ input.option-input[type="text"]{ background-color: rgb(2, 0, 100); } + #no_sparks td{ + background: #3b514f; + } } \ No newline at end of file diff --git a/options/mzta-options.html b/options/mzta-options.html index 1214b676..8cd6443e 100644 --- a/options/mzta-options.html +++ b/options/mzta-options.html @@ -344,6 +344,12 @@ + + + __MSG_prefs_OptionText_get_calendar_event_Sparks_not_present__ +
__MSG_prefs_OptionText_download_now__ + +