Skip to content

Commit

Permalink
reflect rooms order on sheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown committed Nov 25, 2020
1 parent b7d5ce8 commit b91b8e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions app/controllers/events/view/scheduler.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ export default class extends Controller {
return false;
}
@computed('model.microlocations')
get microlocations() {
return this.model.microlocations.sortBy('position');
}
@computed('model.unscheduled', 'filter')
get unscheduledSessions() {
if (!this.filter || !this.model.unscheduled) {return this.model.unscheduled}
Expand Down
2 changes: 1 addition & 1 deletion app/templates/events/view/scheduler.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<Schedule
@event={{this.model.event}}
@sessions={{this.model.scheduled}}
@rooms={{this.model.microlocations}}
@rooms={{this.microlocations}}
@editable={{true}}
@droppable={{true}}
@defaultTimedEventDuration={{this.model.defaultDuration}}
Expand Down

0 comments on commit b91b8e7

Please sign in to comment.