Mercurial > gemma
changeset 5507:279900b28b1b deactivate-users
Client: Notify user by successfully deleting/deactivating users
* Display an info-toast for the user's deleting-process.
author | Fadi Abbud <fadi.abbud@intevation.de> |
---|---|
date | Thu, 23 Sep 2021 14:47:36 +0200 |
parents | 90506606a7ef |
children | 29af073c824d |
files | client/src/components/usermanagement/Usermanagement.vue |
diffstat | 1 files changed, 12 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/usermanagement/Usermanagement.vue Thu Sep 23 13:40:33 2021 +0200 +++ b/client/src/components/usermanagement/Usermanagement.vue Thu Sep 23 14:47:36 2021 +0200 @@ -312,7 +312,18 @@ callback: () => { this.$store .dispatch("usermanagement/deleteUser", { name }) - .then(() => { + .then(response => { + displayInfo({ + message: + name + + // Exclude whitespaces from the string passed to "gettext" function + " " + + this.$gettext("user account") + + " " + + response.data.action + + " " + + this.$gettext("successfully") + }); this.$store .dispatch("usermanagement/loadUsers") .catch(error => {