Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/circles.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2020-11-11 19:29:02 +0300
committerMaxence Lange <maxence@artificial-owl.com>2020-11-11 19:29:14 +0300
commit0d688fd8e0a88523b175288192de461752086ada (patch)
treec45de00cb8006718378df8db7f5840b026930f6e /js
parent138f001cf4cc7677332db40a0a1d1297b8d60fff (diff)
caching display name
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'js')
-rw-r--r--js/circles.app.results.members.js36
1 files changed, 11 insertions, 25 deletions
diff --git a/js/circles.app.results.members.js b/js/circles.app.results.members.js
index ab89a8f2..a995b9b3 100644
--- a/js/circles.app.results.members.js
+++ b/js/circles.app.results.members.js
@@ -176,17 +176,14 @@ var resultMembers = {
}
if (result.status === 1) {
- OCA.notification.onSuccess(
- t('circles', "The member '{name}' was added to the circle",
- {name: result.display}));
+ OCA.notification.onSuccess(t('circles', "A new member was added to the circle"));
nav.displayMembers(result.members);
return;
}
OCA.notification.onFail(
- t('circles', "The member '{name}' could not be added to the circle",
- {name: result.display}) +
+ t('circles', "Member could not be added to the circle") +
': ' + ((result.error) ? result.error : t('circles', 'no error message')));
},
@@ -216,16 +213,13 @@ var resultMembers = {
}
if (result.status === 1) {
- OCA.notification.onSuccess(
- t('circles', "The contact '{contact}' was added to the circle",
- {contact: result.display}));
+ OCA.notification.onSuccess(t('circles', "A new contact was added to the circle"));
nav.displayMembers(result.members);
return;
}
OCA.notification.onFail(
- t('circles', "The contact '{contact}' could not be added to the circle",
- {contact: result.display}) +
+ t('circles', "Contact could not be added to the circle") +
': ' + ((result.error) ? result.error : t('circles', 'no error message')));
},
@@ -234,15 +228,13 @@ var resultMembers = {
if (result.status === 1) {
OCA.notification.onSuccess(
- t('circles', "The member '{name}' was invited to the circle",
- {name: result.display}));
+ t('circles', "A new member was invited to the circle"));
nav.displayMembers(result.members);
return;
}
OCA.notification.onFail(
- t('circles', "The member '{name}' could not be invited to the circle",
- {name: result.display}) +
+ t('circles', "Member could not be invited to the circle") +
': ' + ((result.error) ? result.error : t('circles', 'no error message')));
},
@@ -301,24 +293,19 @@ var resultMembers = {
$(this).hide(300);
}
});
- OCA.notification.onSuccess(
- t('circles', "The member '{name}' was removed from the circle",
- {name: result.display}));
+ OCA.notification.onSuccess(t('circles', "Member was removed from the circle"));
return;
}
OCA.notification.onFail(
- t('circles', "The member '{name}' could not be removed from the circle",
- {name: result.display}) +
- ': ' +
- ((result.error) ? result.error : t('circles', 'no error message')));
+ t('circles', "Member could not be removed from the circle") +
+ ': ' + ((result.error) ? result.error : t('circles', 'no error message')));
},
levelMemberResult: function(result) {
if (result.status === 1) {
OCA.notification.onSuccess(
- t('circles', "Member '{name}' updated",
- {name: result.display}));
+ t('circles', "Member updated"));
nav.displayMembers(result.members);
return;
@@ -326,8 +313,7 @@ var resultMembers = {
nav.displayMembers('');
OCA.notification.onFail(
- t('circles', "The member '{name}' could not be updated", {name: result.display}) +
- ': ' +
+ t('circles', "Member could not be updated") + ': ' +
((result.error) ? result.error : t('circles', 'no error message')));
}