v54: fix d:feeds to load items
This commit is contained in:
+6
-9
@@ -640,20 +640,17 @@ function initDashboard() {
|
||||
|
||||
// Auto-expand feeds in d:feeds mode
|
||||
if (statusFilter === 'feeds') {
|
||||
// Show the domain-feeds containers
|
||||
// Show the domain-feeds containers and load items
|
||||
container.querySelectorAll('.domain-feeds').forEach(feedsDiv => {
|
||||
feedsDiv.style.display = 'block';
|
||||
});
|
||||
// Also expand feed details
|
||||
// Load items for all feeds
|
||||
container.querySelectorAll('.inline-feed-block').forEach(feedBlock => {
|
||||
const detailDiv = feedBlock.querySelector('.feed-detail');
|
||||
const itemsDiv = feedBlock.querySelector('.feed-items');
|
||||
const feedUrl = feedBlock.dataset.url;
|
||||
if (detailDiv && detailDiv.style.display === 'none') {
|
||||
detailDiv.style.display = 'block';
|
||||
if (!detailDiv.dataset.loaded) {
|
||||
detailDiv.dataset.loaded = 'true';
|
||||
loadFeedDetail(feedUrl, detailDiv);
|
||||
}
|
||||
if (itemsDiv && !itemsDiv.dataset.loaded) {
|
||||
itemsDiv.dataset.loaded = 'true';
|
||||
loadFeedItems(feedUrl, itemsDiv);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
+1
-1
@@ -534,7 +534,7 @@ const dashboardHTML = `<!DOCTYPE html>
|
||||
<div id="output"></div>
|
||||
</div>
|
||||
|
||||
<div style="color: #333; font-size: 11px; margin-top: 10px;">v53</div>
|
||||
<div style="color: #333; font-size: 11px; margin-top: 10px;">v54</div>
|
||||
|
||||
<div class="updated" id="updatedAt">Last updated: {{.UpdatedAt.Format "2006-01-02 15:04:05"}}</div>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user