From 6b79c212a8ad21da0b8f9a683b319e996453d873 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 15 Jul 2026 16:51:52 +0000 Subject: [PATCH] refactor: improve variable name in openRestartConfirmDialog for clarity --- app/sovran_systemsos_web/static/js/events.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/sovran_systemsos_web/static/js/events.js b/app/sovran_systemsos_web/static/js/events.js index 67923ce..4576a4f 100644 --- a/app/sovran_systemsos_web/static/js/events.js +++ b/app/sovran_systemsos_web/static/js/events.js @@ -82,9 +82,9 @@ function openRestartConfirmDialog() { _restartDialogOpener = document.activeElement; // Detect conflicting operations - var conflicted = !!_updatePollTimer || !!_rebuildPollTimer; - if ($restartConflictBox) $restartConflictBox.style.display = conflicted ? "" : "none"; - if ($restartConfirmOk) $restartConfirmOk.disabled = conflicted; + var isOperationInProgress = !!_updatePollTimer || !!_rebuildPollTimer; + if ($restartConflictBox) $restartConflictBox.style.display = isOperationInProgress ? "" : "none"; + if ($restartConfirmOk) $restartConfirmOk.disabled = isOperationInProgress; $restartConfirmModal.classList.add("open");