mirror of
https://github.com/vector-im/element-web.git
synced 2025-09-04 13:21:28 +02:00
Merge pull request #1459 from matrix-org/luke/groups-invite-warm-fuzzy
Add warm fuzzy dialog for inviting users to a group
This commit is contained in:
commit
065ae9580d
@ -76,6 +76,13 @@ function _onGroupInviteFinished(groupId, addrs) {
|
|||||||
title: _t("Failed to invite the following users to %(groupId)s:", {groupId: groupId}),
|
title: _t("Failed to invite the following users to %(groupId)s:", {groupId: groupId}),
|
||||||
description: errorList.join(", "),
|
description: errorList.join(", "),
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
const QuestionDialog = sdk.getComponent("dialogs.QuestionDialog");
|
||||||
|
Modal.createTrackedDialog('Group invitations sent', '', QuestionDialog, {
|
||||||
|
title: _t("Invites sent"),
|
||||||
|
description: _t("Your group invitations have been sent."),
|
||||||
|
hasCancelButton: false,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
|
const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
|
||||||
|
@ -917,5 +917,7 @@
|
|||||||
"Related groups for this room:": "Related groups for this room:",
|
"Related groups for this room:": "Related groups for this room:",
|
||||||
"This room has no related groups": "This room has no related groups",
|
"This room has no related groups": "This room has no related groups",
|
||||||
"New group ID (e.g. +foo:%(localDomain)s)": "New group ID (e.g. +foo:%(localDomain)s)",
|
"New group ID (e.g. +foo:%(localDomain)s)": "New group ID (e.g. +foo:%(localDomain)s)",
|
||||||
|
"Invites sent": "Invites sent",
|
||||||
|
"Your group invitations have been sent.": "Your group invitations have been sent.",
|
||||||
"%(serverName)s Matrix ID": "%(serverName)s Matrix ID"
|
"%(serverName)s Matrix ID": "%(serverName)s Matrix ID"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user