Skip to content

Commit 8dd8fcc

Browse files
nnhathungkhangon
andauthored
fix-9085: When creating a speaker sort the option to add sessions alphabetically (#9113)
fix-9087: On the organizer chat configuration page sort rooms according to the definition in the wizard Co-authored-by: Khang On - TMA <[email protected]>
1 parent 9c016e4 commit 8dd8fcc

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

app/components/forms/session-speaker-form.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,10 @@ export default Component.extend(FormMixin, {
415415
return this.sessions.length === 1;
416416
}),
417417

418+
getSessions: computed('sessions', function() {
419+
return orderBy(this.sessions.toArray(), 'title');
420+
}),
421+
418422
shouldShowNewSessionDetails: computed('sessionDetails', 'newSessionSelected', function() {
419423
return this.newSessionSelected && !this.sessionDetails;
420424
}),

app/routes/events/view/chat.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ export default class extends Route.extend(EmberTableRouteMixin) {
2121
'page[size]' : params.per_page || 25,
2222
'page[number]' : params.page || 1
2323
};
24+
params.sort_by = 'position';
25+
params.sort_dir = 'ASC';
2426
queryString = this.applySortFilters(queryString, params);
2527

2628
const rooms = this.asArray(event.query('microlocations', queryString));

app/templates/components/forms/session-speaker-form.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
{{t 'Select Session'}}
105105
</div>
106106
<div class="menu">
107-
{{#each this.sessions as |session|}}
107+
{{#each this.getSessions as |session|}}
108108
{{#if session.id}}
109109
<div data-value="{{map-value mapper session}}" class="item">
110110
{{session.title}}

0 commit comments

Comments
 (0)