fixed message when sending an invite
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
parent
d8bb5087ed
commit
7567506550
2 changed files with 15 additions and 2 deletions
|
@ -3233,4 +3233,7 @@ join=Join
|
||||||
userAddedOrganization_one=Organization added to the user
|
userAddedOrganization_one=Organization added to the user
|
||||||
userAddedOrganizationError=Could not add organizations to the user\: {{error}}
|
userAddedOrganizationError=Could not add organizations to the user\: {{error}}
|
||||||
userAddedOrganization_other={{count}} organizations added to the user
|
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
|
sentInvitation=Sent invitation
|
||||||
|
|
|
@ -94,10 +94,20 @@ export const Organizations = () => {
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
addAlert(t("userAddedOrganization", { count: orgs.length }));
|
addAlert(
|
||||||
|
t(
|
||||||
|
shouldJoin
|
||||||
|
? "userAddedOrganization"
|
||||||
|
: "userInvitedOrganization",
|
||||||
|
{ count: orgs.length },
|
||||||
|
),
|
||||||
|
);
|
||||||
refresh();
|
refresh();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
addError("userAddedOrganizationError", error);
|
addError(
|
||||||
|
shouldJoin ? "userAddedOrganizationError" : "userInvitedError",
|
||||||
|
error,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in a new issue