WiFi 보정값 표시 방식 정리
This commit is contained in:
@@ -828,14 +828,10 @@
|
||||
function wifiValueTitle(row, key) {
|
||||
const source = row?.[`${key}_source`];
|
||||
if (!source || source === 'iw' || source === 'lease') return '';
|
||||
if (source.startsWith('estimated_')) return '';
|
||||
const labels = {
|
||||
alias: 'DB 저장 이름',
|
||||
generated: 'MAC 기반 임시 이름',
|
||||
estimated_from_rate: '속도 기반 추정',
|
||||
estimated_from_signal: '신호 기반 추정',
|
||||
estimated_from_rx: '수신 속도 기반 추정',
|
||||
estimated_from_tx: '송신 속도 기반 추정',
|
||||
estimated_default: '대역 기본 추정',
|
||||
};
|
||||
return labels[source] || source;
|
||||
}
|
||||
@@ -846,10 +842,7 @@
|
||||
}
|
||||
|
||||
function wifiMetricCell(row, key) {
|
||||
const title = wifiValueTitle(row, key);
|
||||
const className = title ? ' class="wifi-estimated"' : '';
|
||||
const titleAttr = title ? ` title="${attr(title)}"` : '';
|
||||
return `<td${className}${titleAttr}>${escapeHtml(row[key] || '-')}</td>`;
|
||||
return `<td>${escapeHtml(row[key] || '-')}</td>`;
|
||||
}
|
||||
|
||||
async function editWifiHostname(mac, currentName) {
|
||||
|
||||
Reference in New Issue
Block a user