mirror of
https://github.com/wassname/talk.git
synced 2026-08-02 13:10:23 +08:00
[CORL-183] Invite Users (#2349)
* feat: initial UI impl * feat: attach react devtools hook in development * feat: working mutations * feat: polished the invite modal with mutation Co-authored-by: Vinh <vinh@wikiwi.io> * feat: added check * feat: improve the invite server impl * feat: admin invite interface improvements * fix: update tests * feat: moved invite UI to admin * fix: include email enabled as condition for invite * feat: added admin tests * feat: added tests for invite complete flow * fix: review
This commit is contained in:
@@ -53,11 +53,19 @@ export type ConfirmEmailTemplate = UserNotificationContext<
|
||||
}
|
||||
>;
|
||||
|
||||
export type InviteEmailTemplate = UserNotificationContext<
|
||||
"invite",
|
||||
{
|
||||
inviteURL: string;
|
||||
}
|
||||
>;
|
||||
|
||||
type Templates =
|
||||
| ForgotPasswordTemplate
|
||||
| BanTemplate
|
||||
| SuspendTemplate
|
||||
| ConfirmEmailTemplate
|
||||
| ForgotPasswordTemplate
|
||||
| InviteEmailTemplate
|
||||
| PasswordChangeTemplate
|
||||
| ConfirmEmailTemplate;
|
||||
| SuspendTemplate;
|
||||
|
||||
export { Templates as Template };
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
{% extends "layouts/user-notification.html" %}
|
||||
|
||||
{% block content %}
|
||||
You have been invited to join the {{ context.organizationName }} team on Coral. Finish
|
||||
setting up your account <a data-l10n-name="invite" href="{{ context.inviteURL }}">here</a>.
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user