Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

fix(dashboard): stop asking for a restart after a plugin save

Yudhi Armyndharis56e915da918f
diff --git a/dashboard/src/i18n/locales.test.ts b/dashboard/src/i18n/locales.test.ts
index 794620da7..ae63cbe01 100644
--- a/dashboard/src/i18n/locales.test.ts
+++ b/dashboard/src/i18n/locales.test.ts
@@ -433,3 +433,10 @@ test('English Redis copy does not claim Redis stores sessions', () => {
assert.doesNotMatch(copy, /session/i, `${key} claims session storage: "${copy}"`);
}
});
+
+// Plugin config, session activation and per-session overrides all apply live; a restart the toast
+// asks for would only drop every WhatsApp session for nothing.
+test('English plugin save toast does not ask for a server restart', () => {
+ const desc = i18n.t('plugins.toasts.savedDesc', { lng: 'en' });
+ assert.doesNotMatch(desc, /restart required/i, `toast asks for a restart: "${desc}"`);
+});
diff --git a/dashboard/src/i18n/locales/en.json b/dashboard/src/i18n/locales/en.json
index 1242cdd76..7fbe42e64 100644
--- a/dashboard/src/i18n/locales/en.json
+++ b/dashboard/src/i18n/locales/en.json
@@ -1051,7 +1051,7 @@
"healthFail": "Health Check Failed",
"healthError": "Health Check Error",
"savedTitle": "Configuration Saved",
- "savedDesc": "Server restart required to apply changes.",
+ "savedDesc": "Changes take effect without a server restart.",
"saveFailed": "Save Failed",
"installed": "Plugin installed",
"installFailed": "Install failed",