feat(FilterManager): enhance filter row display with priority indicators and update alert message for clarity
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 1m42s
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 1m42s
This commit is contained in:
@@ -534,7 +534,8 @@ function GatewayAutocomplete({ label, value, onChange, gateways = [], required =
|
||||
// Компонент перетаскиваемой строки фильтра
|
||||
function SortableFilterRow({
|
||||
filter,
|
||||
index,
|
||||
index,
|
||||
totalCount,
|
||||
filterKey,
|
||||
isSelected,
|
||||
onToggleSelect,
|
||||
@@ -582,7 +583,13 @@ function SortableFilterRow({
|
||||
/>
|
||||
</td>
|
||||
<td>
|
||||
<span className="badge bg-secondary-lt text-muted me-2">#{index + 1}</span>
|
||||
{index === totalCount - 1 ? (
|
||||
<span className="badge bg-green-lt text-green" title="Высший приоритет">#{index + 1} ★</span>
|
||||
) : index === 0 ? (
|
||||
<span className="badge bg-secondary-lt text-muted" title="Низший приоритет">#{index + 1}</span>
|
||||
) : (
|
||||
<span className="badge bg-secondary-lt text-muted">#{index + 1}</span>
|
||||
)}
|
||||
</td>
|
||||
<td>
|
||||
<div className="d-flex align-items-start">
|
||||
@@ -1997,9 +2004,14 @@ function FilterManager() {
|
||||
</div>
|
||||
) : (
|
||||
<>
|
||||
<div className="alert alert-info mb-3 d-flex align-items-center">
|
||||
<IconGripVertical size={18} className="me-2" />
|
||||
<span>Перетащите строки за иконку <IconGripVertical size={14} className="mx-1" /> чтобы изменить приоритет правил</span>
|
||||
<div className="alert alert-info mb-3">
|
||||
<div className="d-flex align-items-center">
|
||||
<IconGripVertical size={18} className="me-2" />
|
||||
<span>Перетащите строки за иконку <IconGripVertical size={14} className="mx-1" /> чтобы изменить приоритет</span>
|
||||
</div>
|
||||
<div className="text-muted small mt-1">
|
||||
<strong>Важно:</strong> В RouterOS правила внизу списка имеют <strong>высший приоритет</strong> (переопределяют верхние)
|
||||
</div>
|
||||
</div>
|
||||
<DndContext
|
||||
sensors={sensors}
|
||||
@@ -2059,6 +2071,7 @@ function FilterManager() {
|
||||
key={key}
|
||||
filter={filter}
|
||||
index={index}
|
||||
totalCount={serverFilters.filter(f => f != null).length}
|
||||
filterKey={key}
|
||||
isSelected={isSelected}
|
||||
onToggleSelect={() => toggleSelectFilter(key)}
|
||||
|
||||
Reference in New Issue
Block a user