diff --git a/src/static/dashboard.html b/src/static/dashboard.html index 6f738f5..cd5c270 100644 --- a/src/static/dashboard.html +++ b/src/static/dashboard.html @@ -492,6 +492,7 @@ + @@ -806,7 +807,7 @@ - + diff --git a/src/static/js/components.js b/src/static/js/components.js index ba73725..6982748 100644 --- a/src/static/js/components.js +++ b/src/static/js/components.js @@ -1210,6 +1210,10 @@ const UI = { /** * Domain-Gruppe rendern (aufklappbar mit Feeds). */ + _sourceTypeLabel(type) { + return ({ rss_feed: 'RSS', web_source: 'Web', telegram_channel: 'Telegram', x_account: 'X', podcast_feed: 'Podcast', excluded: 'Ausgeschlossen' })[type] || 'Web'; + }, + renderSourceGroup(domain, feeds, isExcluded, excludedNotes, isGlobal) { const catLabel = this._categoryLabels[feeds[0]?.category] || feeds[0]?.category || ''; const feedCount = feeds.filter(f => f.source_type !== 'excluded').length; @@ -1244,7 +1248,7 @@ const UI = { realFeeds.forEach((feed, i) => { const isLast = i === realFeeds.length - 1; const connector = isLast ? '\u2514\u2500' : '\u251C\u2500'; - const typeLabel = feed.source_type === 'rss_feed' ? 'RSS' : 'Web'; + const typeLabel = this._sourceTypeLabel(feed.source_type); const urlDisplay = feed.url ? this._shortenUrl(feed.url) : ''; feedRows += `