Skip to content

Commit dcbac0c

Browse files
martinlehouxfallen
authored andcommitted
fix - Display error alert when remove user from orga failed
1 parent af42b1c commit dcbac0c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

pytition/locale/fr_FR/LC_MESSAGES/django.po

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,6 +1054,10 @@ msgstr ""
10541054
msgid "Remove this member from the organization."
10551055
msgstr "Enlever cet utilisateur de l'organisation."
10561056

1057+
#: pytition/petition/template/orga.js:82
1058+
msgid "Unable to remove this member from the organization."
1059+
msgstr "Impossible d'enlever cet utilisateur de l'organisation."
1060+
10571061
#: pytition/petition/templates/petition/org_profile.html:5
10581062
#, python-format
10591063
msgid ""

pytition/petition/templates/petition/orga.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ $(function () {
7878
window.location = "{% url "user_dashboard" %}";
7979
else
8080
window.location = window.location.href;
81+
}).fail((xhr, status, error) => {
82+
alert("{% trans 'Unable to remove this member from the organization.' %}");
8183
});
8284
});
8385
});

0 commit comments

Comments
 (0)