room tile should be passed child options
This commit is contained in:
parent
5ab947e7de
commit
221b94adbf
1 changed files with 2 additions and 2 deletions
|
@ -25,11 +25,11 @@ export class LeftPanelViewModel extends ViewModel {
|
||||||
super(options);
|
super(options);
|
||||||
const {rooms, openRoom} = options;
|
const {rooms, openRoom} = options;
|
||||||
const roomTileVMs = rooms.mapValues((room, emitChange) => {
|
const roomTileVMs = rooms.mapValues((room, emitChange) => {
|
||||||
return new RoomTileViewModel({
|
return new RoomTileViewModel(this.childOptions({
|
||||||
room,
|
room,
|
||||||
emitChange,
|
emitChange,
|
||||||
emitOpen: openRoom
|
emitOpen: openRoom
|
||||||
});
|
}));
|
||||||
});
|
});
|
||||||
this._roomListFilterMap = new ApplyMap(roomTileVMs);
|
this._roomListFilterMap = new ApplyMap(roomTileVMs);
|
||||||
this._roomList = this._roomListFilterMap.sortValues((a, b) => a.compare(b));
|
this._roomList = this._roomListFilterMap.sortValues((a, b) => a.compare(b));
|
||||||
|
|
Reference in a new issue