sync: auto-sync from HOWARD-HOME at 2026-07-18 11:56:15
Author: Howard Enos Machine: HOWARD-HOME Timestamp: 2026-07-18 11:56:15
This commit is contained in:
@@ -253,9 +253,8 @@ async function loadLabels() {
|
|||||||
|
|
||||||
async function loadIssues() {
|
async function loadIssues() {
|
||||||
allIssues = [];
|
allIssues = [];
|
||||||
const states = showClosed ? ['open','closed'] : ['open'];
|
|
||||||
const fetches = ALL_REPOS.map(async repo => {
|
const fetches = ALL_REPOS.map(async repo => {
|
||||||
for (const state of states) {
|
for (const state of ['open', 'closed']) {
|
||||||
let page=1;
|
let page=1;
|
||||||
while(true) {
|
while(true) {
|
||||||
try {
|
try {
|
||||||
@@ -336,7 +335,8 @@ function getFiltered() {
|
|||||||
const q = searchText.toLowerCase();
|
const q = searchText.toLowerCase();
|
||||||
items = items.filter(i => i.title.toLowerCase().includes(q) || (i.body||'').toLowerCase().includes(q) || ('#'+i.number).includes(q));
|
items = items.filter(i => i.title.toLowerCase().includes(q) || (i.body||'').toLowerCase().includes(q) || ('#'+i.number).includes(q));
|
||||||
}
|
}
|
||||||
if (!showClosed) items = items.filter(i => i.state !== 'closed');
|
// showClosed controls list view; board view always shows done column
|
||||||
|
if (!showClosed && currentView === 'list') items = items.filter(i => i.state !== 'closed');
|
||||||
return items;
|
return items;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -425,8 +425,8 @@ function renderToolbar() {
|
|||||||
<button class="btn ${currentView==='board'?'active':''}" onclick="currentView='board';renderMain()">Board</button>
|
<button class="btn ${currentView==='board'?'active':''}" onclick="currentView='board';renderMain()">Board</button>
|
||||||
<button class="btn ${currentView==='list'?'active':''}" onclick="currentView='list';renderMain()">List</button>
|
<button class="btn ${currentView==='list'?'active':''}" onclick="currentView='list';renderMain()">List</button>
|
||||||
</div>
|
</div>
|
||||||
<button class="btn ${showClosed?'active':''}" onclick="showClosed=!showClosed;loadIssues()">
|
<button class="btn ${showClosed?'active':''}" onclick="showClosed=!showClosed;renderMain()">
|
||||||
${showClosed ? 'Showing closed' : 'Show closed'}
|
${showClosed ? 'Hiding closed in list' : 'Show closed in list'}
|
||||||
</button>
|
</button>
|
||||||
<button class="btn btn-primary" onclick="showNewIssue()">+ New Issue</button>
|
<button class="btn btn-primary" onclick="showNewIssue()">+ New Issue</button>
|
||||||
<button class="btn" onclick="loadIssues()">Refresh</button>
|
<button class="btn" onclick="loadIssues()">Refresh</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user