fix: [ui:connectionTestResult] Only display error once
parent
1c4853f8a5
commit
05f592a198
|
@ -55,11 +55,8 @@ function attachTestConnectionResultHtml(result, $container) {
|
|||
$testResultDiv.append(getKVHtml('Internal error', result, ['text-danger fw-bold']))
|
||||
} else {
|
||||
if (result['error']) {
|
||||
if (result['ping']) {
|
||||
$testResultDiv.append('Status', 'OK', ['text-danger'], `${result['ping']} ms`);
|
||||
}
|
||||
$testResultDiv.append(
|
||||
getKVHtml('Status', `Error: ${result['error']}`, ['text-danger']),
|
||||
getKVHtml('Status', `Error: ${result['error']}`, ['text-danger'], (result['ping'] ? `${result['ping']} ms` : '')),
|
||||
getKVHtml('Reason', result['reason'], ['text-danger'])
|
||||
)
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue