refactor: Simplify community label formatting in ASNs, Domains, and IPRanges managers for improved clarity and consistency
Publish Fast Tabler Docker image / build-and-push-fast (push) Failing after 1m14s

This commit is contained in:
2025-08-10 20:48:19 +07:00
parent f74586c4ff
commit 42c54a32c1
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -556,7 +556,7 @@ function ASNsNewManager() {
{/* Общий список подсказок community */}
<datalist id="community-options">
{communities.map(c => {
const label = `${c.name ? c.name + ' — ' : ''}${c.value}${c.description ? ' — ' + c.description : ''}${c.tags && c.tags.length ? ' (' + c.tags.join(', ') + ')' : ''}`;
const label = c.name ? `${c.value} - ${c.name}` : `${c.value}`;
return (
<option key={c.value} value={c.value} label={label}>{label}</option>
);
+1 -1
View File
@@ -562,7 +562,7 @@ function DomainsNewManager() {
{/* Общий список подсказок community */}
<datalist id="community-options">
{communities.map(c => {
const label = `${c.name ? c.name + ' — ' : ''}${c.value}${c.description ? ' — ' + c.description : ''}${c.tags && c.tags.length ? ' (' + c.tags.join(', ') + ')' : ''}`;
const label = c.name ? `${c.value} - ${c.name}` : `${c.value}`;
return (
<option key={c.value} value={c.value} label={label}>{label}</option>
);
+1 -1
View File
@@ -576,7 +576,7 @@ function IPRangesManager() {
{/* Общий список подсказок community */}
<datalist id="community-options">
{communities.map(c => {
const label = `${c.name ? c.name + ' — ' : ''}${c.value}${c.description ? ' — ' + c.description : ''}${c.tags && c.tags.length ? ' (' + c.tags.join(', ') + ')' : ''}`;
const label = c.name ? `${c.value} - ${c.name}` : `${c.value}`;
return (
<option key={c.value} value={c.value} label={label}>{label}</option>
);