diff --git a/apps/pusher_app/appserver/static/git_pusher.js b/apps/pusher_app/appserver/static/git_pusher.js index 746a93e9..7c7e13fe 100755 --- a/apps/pusher_app/appserver/static/git_pusher.js +++ b/apps/pusher_app/appserver/static/git_pusher.js @@ -517,7 +517,7 @@ function showError(message) { errorMsg.style.display = 'block'; } -function resetForm() { +function resetForm(showConfirm = false) { document.getElementById('git-url').value = ''; document.getElementById('git-branch').value = 'main'; document.getElementById('git-token').value = ''; @@ -525,7 +525,8 @@ function resetForm() { document.querySelectorAll('#dashboard-list input[type="checkbox"]').forEach(cb => cb.checked = false); // Demander si l'utilisateur veut aussi effacer les credentials sauvegardés - if (document.getElementById('save-credentials').checked) { + // SEULEMENT si showConfirm = true (c'est-à-dire si l'utilisateur a cliqué sur Reset) + if (showConfirm && document.getElementById('save-credentials').checked) { const confirmClear = confirm('Do you want to clear saved credentials?'); if (confirmClear) { clearSavedCredentials(); diff --git a/apps/pusher_app/local/data/ui/views/git_pusher_-_push_applications_to_git.xml b/apps/pusher_app/local/data/ui/views/git_pusher_-_push_applications_to_git.xml index 78cc7b42..eca8b17e 100644 --- a/apps/pusher_app/local/data/ui/views/git_pusher_-_push_applications_to_git.xml +++ b/apps/pusher_app/local/data/ui/views/git_pusher_-_push_applications_to_git.xml @@ -216,7 +216,7 @@ - diff --git a/apps/pusher_app/metadata/local.meta b/apps/pusher_app/metadata/local.meta index e657d329..1fc4fcf3 100644 --- a/apps/pusher_app/metadata/local.meta +++ b/apps/pusher_app/metadata/local.meta @@ -16,4 +16,4 @@ modtime = 1769276443.812957000 [views/git_pusher_-_push_applications_to_git] owner = admin version = 10.0.2 -modtime = 1769294522.256010000 +modtime = 1769361925.808816000