diff --git a/diagnose.py b/diagnose.py
index 7b34d68..79c7d9c 100644
--- a/diagnose.py
+++ b/diagnose.py
@@ -108,7 +108,8 @@ class DiagnosticsRunner:
pulse_url = None
if execution_id:
- pulse_url = f'http://pulse.lotusguild.org/executions/{execution_id}'
+ base = getattr(self.pulse, 'url', '').rstrip('/')
+ pulse_url = f'{base}/executions/{execution_id}' if base else None
return {
'status': 'done',
diff --git a/templates/index.html b/templates/index.html
index 9a7b35a..93cb6e2 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -214,7 +214,7 @@
{{ e.event_type | replace('_', ' ') }} |
{{ e.target_name }} |
{{ e.target_detail or '–' }} |
- {{ e.description | truncate(60) }} |
+ {{ e.description | truncate(60) }} |
{{ e.first_seen }} |
{{ e.consecutive_failures }} |
diff --git a/templates/suppressions.html b/templates/suppressions.html
index 4449e58..c4ca7c6 100644
--- a/templates/suppressions.html
+++ b/templates/suppressions.html
@@ -180,10 +180,10 @@
document.getElementById('s-name').required = (t!=='all');
}
- function setDur(mins) {
+ function setDur(mins, el) {
document.getElementById('s-expires').value = mins || '';
document.querySelectorAll('.duration-pills .pill').forEach(p => p.classList.remove('active'));
- event.target.classList.add('active');
+ if (el) el.classList.add('active');
const hint = document.getElementById('s-dur-hint');
if (mins) {
const h = Math.floor(mins/60), m = mins%60;
@@ -224,6 +224,8 @@
if (data.success) {
document.getElementById(`sup-row-${id}`)?.remove();
showToast('Suppression removed', 'success');
+ } else {
+ showToast(data.error || 'Failed to remove suppression', 'error');
}
}
|