diff --git a/frontend/src/ASNsNewManager.jsx b/frontend/src/ASNsNewManager.jsx index 2aaca7b..f257b6c 100644 --- a/frontend/src/ASNsNewManager.jsx +++ b/frontend/src/ASNsNewManager.jsx @@ -572,11 +572,28 @@ function ASNsNewManager() {

Список ASN {items.length}

{/* Фильтр по community */} - { setFilterCommunity(e.target.value); setCurrentPage(1); }} + title={(() => { + const meta = communities.find(c => c.value === filterCommunity); + if (!meta) return 'Все community'; + const name = meta.name ? meta.name + ' — ' : ''; + const desc = meta.description || ''; + const tags = meta.tags && meta.tags.length ? ' (' + meta.tags.join(', ') + ')' : ''; + return name + desc + tags; + })()} + > - {allCommunities.map(community => ( - - ))} + {allCommunities.map(community => { + const meta = communities.find(c => c.value === community); + const label = meta && meta.name ? `${community} — ${meta.name}` : community; + const title = meta ? `${meta.name ? meta.name + ' — ' : ''}${meta.description || ''}${meta.tags && meta.tags.length ? ' (' + meta.tags.join(', ') + ')' : ''}` : community; + return ( + + ); + })} {/* Поиск */}
diff --git a/frontend/src/DomainsNewManager.jsx b/frontend/src/DomainsNewManager.jsx index 9b29cf2..798ff86 100644 --- a/frontend/src/DomainsNewManager.jsx +++ b/frontend/src/DomainsNewManager.jsx @@ -578,11 +578,28 @@ function DomainsNewManager() {

Список доменов {items.length}

{/* Фильтр по community */} - { setFilterCommunity(e.target.value); setCurrentPage(1); }} + title={(() => { + const meta = communities.find(c => c.value === filterCommunity); + if (!meta) return 'Все community'; + const name = meta.name ? meta.name + ' — ' : ''; + const desc = meta.description || ''; + const tags = meta.tags && meta.tags.length ? ' (' + meta.tags.join(', ') + ')' : ''; + return name + desc + tags; + })()} + > - {allCommunities.map(community => ( - - ))} + {allCommunities.map(community => { + const meta = communities.find(c => c.value === community); + const label = meta && meta.name ? `${community} — ${meta.name}` : community; + const title = meta ? `${meta.name ? meta.name + ' — ' : ''}${meta.description || ''}${meta.tags && meta.tags.length ? ' (' + meta.tags.join(', ') + ')' : ''}` : community; + return ( + + ); + })} {/* Поиск */}
diff --git a/frontend/src/IPRangesManager.jsx b/frontend/src/IPRangesManager.jsx index 51346af..cc5e7ac 100644 --- a/frontend/src/IPRangesManager.jsx +++ b/frontend/src/IPRangesManager.jsx @@ -828,11 +828,28 @@ function IPRangesManager() {

Список IP-диапазонов {items.length}

{/* Фильтр по community */} - { setFilterCommunity(e.target.value); setCurrentPage(1); }} + title={(() => { + const meta = communities.find(c => c.value === filterCommunity); + if (!meta) return 'Все community'; + const name = meta.name ? meta.name + ' — ' : ''; + const desc = meta.description || ''; + const tags = meta.tags && meta.tags.length ? ' (' + meta.tags.join(', ') + ')' : ''; + return name + desc + tags; + })()} + > - {allCommunities.map(community => ( - - ))} + {allCommunities.map(community => { + const meta = communities.find(c => c.value === community); + const label = meta && meta.name ? `${community} — ${meta.name}` : community; + const title = meta ? `${meta.name ? meta.name + ' — ' : ''}${meta.description || ''}${meta.tags && meta.tags.length ? ' (' + meta.tags.join(', ') + ')' : ''}` : community; + return ( + + ); + })} {/* Поиск */}