From 2a433bcd92c25747982b720eff64897d5e99257f Mon Sep 17 00:00:00 2001
From: Martin Renvoize
Date: Wed, 25 Feb 2026 14:20:31 +0000
Subject: [PATCH] Bug 10190: warn when no default triggers exist and show
libraries with rules
When viewing the default library context with no triggers defined, show
a warning message explaining defaults apply to all libraries. If any
libraries have specific triggers, list them as clickable links that
switch the filter to that library. If no rules exist anywhere, show a
prompt to add the first trigger.
---
.../CirculationTriggersList.vue | 54 +++++++++++++++++++
.../prog/js/vue/stores/circulation-rules.js | 16 ++++++
2 files changed, 70 insertions(+)
diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Admin/CirculationTriggers/CirculationTriggersList.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Admin/CirculationTriggers/CirculationTriggersList.vue
index a11b9940efe..6ded9bdcf75 100644
--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Admin/CirculationTriggers/CirculationTriggersList.vue
+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Admin/CirculationTriggers/CirculationTriggersList.vue
@@ -89,6 +89,50 @@
}}
+
+
+ {{
+ $__(
+ "No default overdue triggers are defined. Default triggers apply to all libraries unless overridden."
+ )
+ }}
+
+
+
+ {{
+ $__(
+ "The following libraries have library-specific triggers defined:"
+ )
+ }}
+
+
+
+
+ {{
+ $__(
+ "No library-specific triggers are defined either. Select add new trigger above to get started."
+ )
+ }}
+
+