From 40e791ea3a222c911104ee7b9f297d53f811748e Mon Sep 17 00:00:00 2001 From: Julian Prieber Date: Fri, 20 Dec 2024 23:11:20 +0100 Subject: [PATCH] Add handling for normal update icons in sidebar layout --- resources/views/layouts/sidebar.blade.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/views/layouts/sidebar.blade.php b/resources/views/layouts/sidebar.blade.php index 3224773..7ffdf4a 100755 --- a/resources/views/layouts/sidebar.blade.php +++ b/resources/views/layouts/sidebar.blade.php @@ -608,9 +608,11 @@ MODAL; // <-- Indentation breaks my code editor :/ document.getElementById('beta-version').textContent = Vbeta; var updateElements = document.getElementsByClassName('update-icon-update'); + var normalElements = document.getElementsByClassName('update-icon-normal'); for (var i = 0; i < updateElements.length; i++) { updateElements[i].style.display = isVisible ? 'block' : 'none'; + normalElements[i].style.display = 'none'; } } @@ -632,6 +634,7 @@ MODAL; // <-- Indentation breaks my code editor :/ for (var i = 0; i < updateElements.length; i++) { updateElements[i].style.display = isVisible ? 'block' : 'none'; + normalElements[i].style.display = 'none'; } for (var i = 0; i < normalElements.length; i++) { @@ -657,7 +660,7 @@ MODAL; // <-- Indentation breaks my code editor :/ -