ui: harden grpc empty state rendering

This commit is contained in:
a.tolmachev
2026-05-02 11:51:06 +00:00
parent f4799d1c7e
commit 62b092cac7
+8 -1
View File
@@ -993,7 +993,14 @@ function renderFieldList(elId, typeName) {
if (!fields || fields.length === 0) {
var emptyEl = document.createElement('div');
emptyEl.className = 'proto-field-empty';
emptyEl.innerHTML = tKey('wizard.grpc.fields_unresolved') + '<br><span style="color:var(--text-muted);font-size:11px;">' + tKey('wizard.grpc.fields_unresolved_body') + '</span>';
emptyEl.textContent = '';
emptyEl.appendChild(document.createTextNode(tKey('wizard.grpc.fields_unresolved')));
emptyEl.appendChild(document.createElement('br'));
var hint = document.createElement('span');
hint.style.color = 'var(--text-muted)';
hint.style.fontSize = '11px';
hint.textContent = tKey('wizard.grpc.fields_unresolved_body');
emptyEl.appendChild(hint);
el.appendChild(emptyEl);
return;
}