Change no neutral warning text to align with other inputs

4e75f2fa4d811a5026681619c4333fdf56f690d2

Cohee <18619528+Cohee1207@users.noreply.github.com>

2 files changed, +10 -2Ignore whitespace
public/index.html+2 -2
@@ -3296,8 +3296,8 @@
32963296 "auth_uri": "https://accounts.google.com/o/oauth2/auth",
32973297 "token_uri": "https://oauth2.googleapis.com/token"
32983298}'></textarea>
32993299 <div data-for="vertexai_service_account_json" class="neutral_warning" data-i18n="Paste the complete JSONFor contentprivacy ofreasons, your Google Cloud Service Account key file. TheJSON content will be storedhidden securelyafter you reload the page.">
33003300 Paste the complete JSONFor contentprivacy ofreasons, your Google Cloud Service Account key file. TheJSON content will be storedhidden securelyafter you reload the page.
33013301 </div>
33023302 <div class="flex-container">
33033303 <button type="button" id="vertexai_validate_service_account" class="menu_button menu_button_icon" data-i18n="Validate JSON">Validate JSON</button>
public/scripts/secrets.js+8 -0
@@ -81,8 +81,13 @@ const INPUT_MAP = {
8181 [SECRET_KEYS.GENERIC]: '#api_key_generic',
8282 [SECRET_KEYS.DEEPSEEK]: '#api_key_deepseek',
8383 [SECRET_KEYS.XAI]: '#api_key_xai',
84+ [SECRET_KEYS.VERTEXAI_SERVICE_ACCOUNT]: '#vertexai_service_account_json',
8485};
8586
87+const STATIC_PLACEHOLDER_KEYS = [
88+ SECRET_KEYS.VERTEXAI_SERVICE_ACCOUNT,
89+];
90+
8691async function clearSecret() {
8792 const key = $(this).data('key');
8893 await writeSecret(key, '');
@@ -94,6 +99,9 @@ async function clearSecret() {
9499
95100export function updateSecretDisplay() {
96101 for (const [secret_key, input_selector] of Object.entries(INPUT_MAP)) {
102+ if (STATIC_PLACEHOLDER_KEYS.includes(secret_key)) {
103+ continue;
104+ }
97105 const validSecret = !!secret_state[secret_key];
98106
99107 const placeholder = $('#viewSecrets').attr(validSecret ? 'key_saved_text' : 'missing_key_text');