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 @@
-