Edited text from #96

This commit is contained in:
itdoginfo
2025-05-01 22:52:41 +03:00
parent 38acac1a31
commit 3c1b041b52
2 changed files with 27 additions and 29 deletions

View File

@@ -1463,7 +1463,7 @@ return view.extend({
bypassStatus: null
};
// Выполняем все проверки независимо друг от друга
// Perform all checks independently of each other
const checks = [
safeExec('/usr/bin/podkop', ['get_status'])
.then(result => results.podkopStatus = result)
@@ -1509,7 +1509,7 @@ return view.extend({
.catch(() => results.bypassStatus = { state: 'error', message: 'check error', color: STATUS_COLORS.WARNING })
];
// Ждем завершения всех проверок
// Waiting for all the checks to be completed
await Promise.allSettled(checks);
const container = document.getElementById('diagnostics-status');
@@ -1558,7 +1558,7 @@ return view.extend({
container.innerHTML = '';
container.appendChild(statusSection);
// Обновляем отдельные элементы статуса
// Updating individual status items
const updateStatusElement = (elementId, status, template) => {
const element = document.getElementById(elementId);
if (element) {