Skip to content
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

fix: Sessions were restricted to limit 20 #3793

Merged
merged 1 commit into from
Jan 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/routes/events/view/speakers/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default Route.extend({
creator : this.get('authManager.currentUser')
}),
sessions: await eventDetails.query('sessions', {
'page[size]': 0
}),
speaker: await this.store.createRecord('speaker', {
event : eventDetails,
Expand Down
20 changes: 14 additions & 6 deletions app/templates/components/forms/session-speaker-form.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -292,13 +292,21 @@
<h4>
{{t 'Choose from an existing session'}}
</h4>
{{#each sessions as |session|}}
<div class="field">
{{#if session.id}}
{{ui-radio name='sessionDetails' label=session.title value=session onChange=(action (mut sessionDetails))}}
{{/if}}
{{#ui-dropdown class="fluid search selection" selected=sessionDetails onChange=(action (mut sessionDetails)) as |execute mapper|}}
<i class="dropdown icon"></i>
<div class="default text">
{{t 'Select Session'}}
</div>
{{/each}}
<div class="menu">
{{#each sessions as |session|}}
{{#if session.id}}
<div data-value="{{map-value mapper session}}" class="item">
{{session.title}}
</div>
{{/if}}
{{/each}}
</div>
{{/ui-dropdown}}
{{#if noSessionExists}}
<div class="ui small disabled header">{{t 'No session exists. Add a new session proposal.'}}</div>
{{/if}}
Expand Down