mirror of
https://github.com/myronblair/jarvis
synced 2026-06-30 17:50:23 -05:00
Alerts tab: default to Active filter, order Active/All/Resolved
This commit is contained in:
@@ -529,8 +529,8 @@ select.filter-sel:focus{border-color:var(--cyan)}
|
||||
</div>
|
||||
<div class="filters">
|
||||
<span class="lbl">FILTER:</span>
|
||||
<button class="filter-btn active" onclick="setAlertFilter('all',this)">ALL</button>
|
||||
<button class="filter-btn" onclick="setAlertFilter('active',this)">ACTIVE</button>
|
||||
<button class="filter-btn active" onclick="setAlertFilter('active',this)">ACTIVE</button>
|
||||
<button class="filter-btn" onclick="setAlertFilter('all',this)">ALL</button>
|
||||
<button class="filter-btn" onclick="setAlertFilter('resolved',this)">RESOLVED</button>
|
||||
</div>
|
||||
<div class="tbl-wrap" id="alerts-tbl"><div class="loading">LOADING...</div></div>
|
||||
@@ -637,7 +637,7 @@ select.filter-sel:focus{border-color:var(--cyan)}
|
||||
|
||||
<script>
|
||||
// ── UTILS ─────────────────────────────────────────────────────────────────────
|
||||
let _alertFilter = 'all';
|
||||
let _alertFilter = 'active';
|
||||
let _modalCb = null;
|
||||
|
||||
function esc(s){ return String(s||'').replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>').replace(/"/g,'"'); }
|
||||
|
||||
Reference in New Issue
Block a user