diff --git a/containers/libreportal/frontend/components/apps/overview/js/overview-manager.js b/containers/libreportal/frontend/components/apps/overview/js/overview-manager.js index a662c27..1c1c6cc 100644 --- a/containers/libreportal/frontend/components/apps/overview/js/overview-manager.js +++ b/containers/libreportal/frontend/components/apps/overview/js/overview-manager.js @@ -37,7 +37,7 @@ class OverviewManager { this.backup = null; // /data/backup/generated/dashboard.json this.tabs = null; // TabController (show/hide only) this.filter = 'all'; // Updates-tab chip: all | updates | security - this.board = 'all'; // Overview-tab chip: all | action + this.board = null; // Overview-tab chip: null = auto | all | action this.current = null; } @@ -361,9 +361,13 @@ class OverviewManager { } else { sub = 'The first automatic scan runs within a couple of minutes.'; } + // Open on the decisions, not the full list — but "Needs action" is an empty + // pane when nothing is pending, so the auto default (board === null) falls + // back to Everything until the admin picks a chip, which then sticks. + const board = this.board || (warn.length ? 'action' : 'all'); const chip = (id, label, n) => - ``; - const shown = this.board === 'action' ? warn : rows; + ``; + const shown = board === 'action' ? warn : rows; const list = shown.length ? `
${shown.map((r) => this.boardRow(r)).join('')}
` : `
Nothing needs action right now.
`;