Merge branch 'fix-validate-follower-message' into 'master'
Fix success message when validating group follower Closes #612 See merge request framasoft/mobilizon!838
This commit is contained in:
commit
6e27a912c4
@ -956,5 +956,6 @@
|
||||
"The group's avatar was changed.": "The group's avatar was changed.",
|
||||
"The group's banner was changed.": "The group's banner was changed.",
|
||||
"The group's short description was changed.": "The group's short description was changed.",
|
||||
"No information": "No information"
|
||||
"No information": "No information",
|
||||
"@{username}'s follow request was accepted": "@{username}'s follow request was accepted"
|
||||
}
|
||||
|
@ -1050,5 +1050,6 @@
|
||||
"{title} ({count} todos)": "{title} ({count} todos)",
|
||||
"{username} was invited to {group}": "{username} a été invité à {group}",
|
||||
"© The OpenStreetMap Contributors": "© Les Contributeur⋅ices OpenStreetMap",
|
||||
"No information": "Non renseigné"
|
||||
"No information": "Non renseigné",
|
||||
"@{username}'s follow request was accepted": "@{username}'s follow request was accepted"
|
||||
}
|
||||
|
@ -245,11 +245,14 @@ export default class GroupFollowers extends mixins(GroupMixin) {
|
||||
},
|
||||
],
|
||||
});
|
||||
this.$notifier.success(
|
||||
this.$t("@{username}'s follow request was rejected", {
|
||||
const message = approved
|
||||
? this.$t("@{username}'s follow request was accepted", {
|
||||
username: follower.actor.preferredUsername,
|
||||
}) as string
|
||||
);
|
||||
})
|
||||
: this.$t("@{username}'s follow request was rejected", {
|
||||
username: follower.actor.preferredUsername,
|
||||
});
|
||||
this.$notifier.success(message as string);
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
if (error.graphQLErrors && error.graphQLErrors.length > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user