mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 11:13:22 +08:00
FIX: Allow pasting invitees in invite modal (#12520)
Meta topic: https://meta.discourse.org/t/pasting-email-in-share-a-thread-box-stopped-working/180919?u=osama.
This commit is contained in:
parent
f74785f758
commit
c028745468
|
@ -468,7 +468,11 @@ export default Component.extend({
|
|||
|
||||
@action
|
||||
updateInvitee(selected, content) {
|
||||
const invitee = content.findBy("id", selected[0]);
|
||||
let invitee = content.findBy("id", selected[0]);
|
||||
if (!invitee && content.length) {
|
||||
invitee =
|
||||
typeof content[0] === "string" ? { id: content[0] } : content[0];
|
||||
}
|
||||
if (invitee) {
|
||||
this.setProperties({
|
||||
invitee: invitee.id.trim(),
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
excludeCurrentUser=true
|
||||
includeMessageableGroups=isPM
|
||||
filterPlaceholder=placeholderKey
|
||||
fullWidthWrap=true
|
||||
)
|
||||
}}
|
||||
{{else}}
|
||||
|
|
|
@ -76,10 +76,6 @@
|
|||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.invite-user-control input.email-or-username-input {
|
||||
line-height: 1.75em;
|
||||
}
|
||||
|
||||
.group-access-control {
|
||||
.select-kit.multi-select input.filter-input {
|
||||
padding-left: 8px;
|
||||
|
@ -98,8 +94,16 @@
|
|||
color: var(--secondary-medium);
|
||||
}
|
||||
|
||||
.email-or-username-input {
|
||||
.invite-user-input {
|
||||
width: 100%;
|
||||
|
||||
.input-wrapper {
|
||||
width: 100%;
|
||||
|
||||
.filter-input {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.max-redemptions-allowed {
|
||||
|
|
Loading…
Reference in New Issue
Block a user