From cfc70ac712915295583dbebd7f2b7f29e071bfd2 Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Tue, 23 Jun 2026 08:12:20 -0500 Subject: [PATCH] fix(dashboard): handle disabled action logs gracefully - Check ComponentHelper::isEnabled('com_actionlogs') before rendering login chart, View Logs button, and recent logins table - Show helpful warning when action logs disabled instead of raw COM_ACTIONLOGS_DISABLED language key --- .../admin/tmpl/dashboard/default.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/source/packages/com_mokosuiteclient/admin/tmpl/dashboard/default.php b/source/packages/com_mokosuiteclient/admin/tmpl/dashboard/default.php index fb35c5c6..8e107dff 100644 --- a/source/packages/com_mokosuiteclient/admin/tmpl/dashboard/default.php +++ b/source/packages/com_mokosuiteclient/admin/tmpl/dashboard/default.php @@ -34,6 +34,7 @@ foreach ($plugins as $plugin) } $categoryOrder = ['core', 'security', 'monitoring', 'content', 'tools', 'api']; +$actionLogsEnabled = Joomla\CMS\Component\ComponentHelper::isEnabled('com_actionlogs'); ?>
@@ -160,12 +161,14 @@ $categoryOrder = ['core', 'security', 'monitoring', 'content', 'tools', 'api']; Global Check-in
+
View Logs
+
@@ -271,6 +274,7 @@ $categoryOrder = ['core', 'security', 'monitoring', 'content', 'tools', 'api'];
+
Login Activity (14 days) @@ -279,6 +283,7 @@ $categoryOrder = ['core', 'security', 'monitoring', 'content', 'tools', 'api'];
+
@@ -372,7 +377,11 @@ $categoryOrder = ['core', 'security', 'monitoring', 'content', 'tools', 'api'];
Recent Logins
- + +
+ Action Logs component is disabled. Enable it to track login activity. +
+
UserAppIPTime