diff --git a/apps/pusher_app/appserver/static/git_pusher.js b/apps/pusher_app/appserver/static/git_pusher.js index 7c7e13fe..a8533d92 100755 --- a/apps/pusher_app/appserver/static/git_pusher.js +++ b/apps/pusher_app/appserver/static/git_pusher.js @@ -63,18 +63,18 @@ function populateAppsList(apps) { return; } - let html = '
'; - html += ''; - html += ''; + let html = '
'; + html += 'Select Applications'; + html += ''; html += '
'; apps.forEach((app, index) => { const checkboxId = 'app-' + index; - html += '
'; - html += ''; + html += '
'; + html += ''; html += ''; html += '
'; @@ -82,6 +82,27 @@ function populateAppsList(apps) { container.innerHTML = html; console.log('Successfully populated ' + apps.length + ' apps'); + + // Ajouter les event listeners + addCheckboxListeners(); +} + +function addCheckboxListeners() { + console.log("addCheckboxListeners called"); + + const selectAllCheckbox = document.getElementById('select-all'); + if (selectAllCheckbox) { + selectAllCheckbox.addEventListener('change', function() { + toggleSelectAll(this); + }); + } + + const appCheckboxes = document.querySelectorAll('#dashboard-list input[type="checkbox"][data-app]'); + appCheckboxes.forEach(checkbox => { + checkbox.addEventListener('change', function() { + console.log("App checkbox changed"); + }); + }); } function showAppsEmpty() { @@ -350,7 +371,7 @@ function showAppsEmpty() { } function toggleSelectAll(checkbox) { - const checkboxes = document.querySelectorAll('#dashboard-list input[type="checkbox"]:not(#select-all)'); + const checkboxes = document.querySelectorAll('#dashboard-list input[type="checkbox"][data-app]'); checkboxes.forEach(cb => cb.checked = checkbox.checked); } diff --git a/apps/pusher_app/local/data/ui/views/git_pusher_-_deploy_applications.xml b/apps/pusher_app/local/data/ui/views/git_pusher_-_deploy_applications.xml index c79b608b..15b0b86d 100644 --- a/apps/pusher_app/local/data/ui/views/git_pusher_-_deploy_applications.xml +++ b/apps/pusher_app/local/data/ui/views/git_pusher_-_deploy_applications.xml @@ -382,40 +382,6 @@ gap: 10px; } - .stats { - display: flex; - gap: 15px; - margin-bottom: 20px; - } - - .stat-item { - flex: 1; - background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%); - border-radius: 12px; - padding: 15px; - text-align: center; - border: 2px solid transparent; - transition: all 0.3s ease; - } - - .stat-item:hover { - border-color: #667eea; - } - - .stat-number { - font-size: 24px; - font-weight: 700; - color: #667eea; - margin-bottom: 5px; - } - - .stat-label { - font-size: 12px; - color: #666; - text-transform: uppercase; - letter-spacing: 0.5px; - } - .divider { height: 1px; background: linear-gradient(90deg, transparent, #e0e0e0, transparent); @@ -484,17 +450,6 @@
📦 Applications
- -
-
-
0
-
Available
-
-
-
0
-
Selected
-
-
diff --git a/apps/pusher_app/metadata/local.meta b/apps/pusher_app/metadata/local.meta index d1705c87..a2a6d1a5 100644 --- a/apps/pusher_app/metadata/local.meta +++ b/apps/pusher_app/metadata/local.meta @@ -23,4 +23,4 @@ access = read : [ * ], write : [ * ] export = none owner = admin version = 10.0.2 -modtime = 1769363261.895692000 +modtime = 1769368785.414181000