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:
Osama Sayegh 2021-03-25 16:24:40 +03:00 committed by GitHub
parent f74785f758
commit c028745468
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 6 deletions

View File

@ -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(),

View File

@ -28,6 +28,7 @@
excludeCurrentUser=true
includeMessageableGroups=isPM
filterPlaceholder=placeholderKey
fullWidthWrap=true
)
}}
{{else}}

View File

@ -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 {