fixed message when sending an invite

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
Erik Jan de Wit 2024-08-19 13:17:22 +02:00 committed by Pedro Igor
parent d8bb5087ed
commit 7567506550
2 changed files with 15 additions and 2 deletions

View file

@ -3233,4 +3233,7 @@ join=Join
userAddedOrganization_one=Organization added to the user
userAddedOrganizationError=Could not add organizations to the user\: {{error}}
userAddedOrganization_other={{count}} organizations added to the user
userInvitedOrganization_one=Invite to user sent
userInvitedOrganizationError=Could not invite user to the organizations\: {{error}}
userInvitedOrganization_other={{count}} invites to users sent
sentInvitation=Sent invitation

View file

@ -94,10 +94,20 @@ export const Organizations = () => {
);
}),
);
addAlert(t("userAddedOrganization", { count: orgs.length }));
addAlert(
t(
shouldJoin
? "userAddedOrganization"
: "userInvitedOrganization",
{ count: orgs.length },
),
);
refresh();
} catch (error) {
addError("userAddedOrganizationError", error);
addError(
shouldJoin ? "userAddedOrganizationError" : "userInvitedError",
error,
);
}
}}
/>