-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FEATURE: allow event editors to control list of users on the event #614
Conversation
Previously event editors could remove people from an event but had no way of acting on behalf of users in the event and adding them. That meant that for events to properly show up in agenda and so on a user must actively click a button. In some cases (company ran events) the event manager may prefer controlling attendance.
assets/javascripts/discourse/components/modal/post-event-invitees.gjs
Outdated
Show resolved
Hide resolved
{{renderInvitee invitee}} | ||
{{#if @model.event.can_act_on_discourse_post_event}} | ||
<DButton | ||
@icon="trash-alt" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
both buttons need a title
<Input | ||
@value={{this.filter}} | ||
{{on "input" this.onFilterChanged}} | ||
class="filter" | ||
placeholder={{i18n | ||
"discourse_calendar.discourse_post_event.invitees_modal.filter_placeholder" | ||
}} | ||
/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's recommended to avoid Input
component and use a native input element instead:
<Input | |
@value={{this.filter}} | |
{{on "input" this.onFilterChanged}} | |
class="filter" | |
placeholder={{i18n | |
"discourse_calendar.discourse_post_event.invitees_modal.filter_placeholder" | |
}} | |
/> | |
<input | |
{{on "input" this.onFilterChanged}} | |
type="text" | |
placeholder={{i18n | |
"discourse_calendar.discourse_post_event.invitees_modal.filter_placeholder" | |
}} | |
class="filter" | |
/> |
@debounce(250) | ||
onFilterChanged() { | ||
this._fetchInvitees(this.filter); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
native input continued:
@debounce(250) | |
onFilterChanged() { | |
this._fetchInvitees(this.filter); | |
} | |
@debounce(250) | |
onFilterChanged(event) { | |
this.filter = event.target.value; | |
this._fetchInvitees(this.filter); | |
} |
Co-authored-by: Jarek Radosz <[email protected]>
…ees.gjs Co-authored-by: Jarek Radosz <[email protected]>
@CvX all is handled and I added some system spec coverage |
Previously event editors could remove people from an event but had no way
of acting on behalf of users in the event and adding them.
That meant that for events to properly show up in agenda and so on a user
must actively click a button.
In some cases (company ran events) the event manager may prefer controlling attendance.