Preserve device inventory across unavailable observations
This commit is contained in:
@@ -391,7 +391,7 @@ export function DevicesPanel({ feature }: { feature: DevicesFeature }) {
|
||||
: '';
|
||||
const groupLabel = group === 'pinned'
|
||||
? 'Закреплённые'
|
||||
: group === 'deprioritized' ? 'Убраны вниз' : 'Остальные';
|
||||
: group === 'deprioritized' ? 'Фоновые' : 'Остальные';
|
||||
const groupStart = group !== previousGroup;
|
||||
const hasName = Boolean(device.alias || device.hostname);
|
||||
const title = device.alias || device.hostname || device.ip || 'Неизвестное устройство';
|
||||
@@ -559,7 +559,7 @@ export function DevicesPanel({ feature }: { feature: DevicesFeature }) {
|
||||
className="client-device-deprioritize"
|
||||
type="button"
|
||||
aria-pressed={deprioritized}
|
||||
aria-label={deprioritized ? `Вернуть ${title} в основной список` : `Убрать ${title} вниз`}
|
||||
aria-label={deprioritized ? `Вернуть ${title} в основной список` : `Убрать ${title} в фон`}
|
||||
disabled={saving}
|
||||
onClick={() => toggleDeprioritized(device)}
|
||||
>
|
||||
@@ -569,7 +569,7 @@ export function DevicesPanel({ feature }: { feature: DevicesFeature }) {
|
||||
: <path d="M12 4v12M7 11l5 5 5-5M5 20h14" />}
|
||||
</svg>
|
||||
</button>
|
||||
<Tooltip>{deprioritized ? 'Вернуть в список' : 'Убрать вниз'}</Tooltip>
|
||||
<Tooltip>{deprioritized ? 'Вернуть в основной список' : 'Убрать в фон'}</Tooltip>
|
||||
</span>
|
||||
{!compact && <TrafficChart
|
||||
samples={device.trafficHistory || []}
|
||||
|
||||
Reference in New Issue
Block a user