Some changes to support RoomView with no composer
This commit is contained in:
parent
4eb24db1de
commit
8d0c4e68b6
3 changed files with 4 additions and 2 deletions
|
@ -21,7 +21,6 @@ import {avatarInitials, getIdentifierColorNumber, getAvatarHttpUrl} from "../../
|
||||||
import {tilesCreator} from "./timeline/tilesCreator.js";
|
import {tilesCreator} from "./timeline/tilesCreator.js";
|
||||||
import {ViewModel} from "../../ViewModel.js";
|
import {ViewModel} from "../../ViewModel.js";
|
||||||
|
|
||||||
console.log('RoomViewModel asdfwafeawfefewfewaeafwafewefw');
|
|
||||||
export class RoomViewModel extends ViewModel {
|
export class RoomViewModel extends ViewModel {
|
||||||
constructor(options) {
|
constructor(options) {
|
||||||
super(options);
|
super(options);
|
||||||
|
|
|
@ -19,11 +19,13 @@ export {Client, LoadStatus} from "./matrix/Client.js";
|
||||||
// export main view & view models
|
// export main view & view models
|
||||||
export {createNavigation, createRouter} from "./domain/navigation/index.js";
|
export {createNavigation, createRouter} from "./domain/navigation/index.js";
|
||||||
export {RootViewModel} from "./domain/RootViewModel.js";
|
export {RootViewModel} from "./domain/RootViewModel.js";
|
||||||
|
export {TemplateView} from "./platform/web/ui/general/TemplateView";
|
||||||
export {RootView} from "./platform/web/ui/RootView.js";
|
export {RootView} from "./platform/web/ui/RootView.js";
|
||||||
export {SessionViewModel} from "./domain/session/SessionViewModel.js";
|
export {SessionViewModel} from "./domain/session/SessionViewModel.js";
|
||||||
export {SessionView} from "./platform/web/ui/session/SessionView.js";
|
export {SessionView} from "./platform/web/ui/session/SessionView.js";
|
||||||
export {RoomViewModel} from "./domain/session/room/RoomViewModel.js";
|
export {RoomViewModel} from "./domain/session/room/RoomViewModel.js";
|
||||||
export {RoomView} from "./platform/web/ui/session/room/RoomView.js";
|
export {RoomView} from "./platform/web/ui/session/room/RoomView.js";
|
||||||
|
export {RightPanelView} from "./platform/web/ui/session/rightpanel/RightPanelView.js";
|
||||||
export {MediaRepository} from "./matrix/net/MediaRepository";
|
export {MediaRepository} from "./matrix/net/MediaRepository";
|
||||||
export {TilesCollection} from "./domain/session/room/timeline/TilesCollection.js";
|
export {TilesCollection} from "./domain/session/room/timeline/TilesCollection.js";
|
||||||
export {tilesCreator} from "./domain/session/room/timeline/tilesCreator.js";
|
export {tilesCreator} from "./domain/session/room/timeline/tilesCreator.js";
|
||||||
|
|
|
@ -15,6 +15,7 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { text } from "../../general/html";
|
||||||
import {TemplateView} from "../../general/TemplateView";
|
import {TemplateView} from "../../general/TemplateView";
|
||||||
import {Popup} from "../../general/Popup.js";
|
import {Popup} from "../../general/Popup.js";
|
||||||
import {Menu} from "../../general/Menu.js";
|
import {Menu} from "../../general/Menu.js";
|
||||||
|
@ -57,7 +58,7 @@ export class RoomView extends TemplateView {
|
||||||
new TimelineView(timelineViewModel) :
|
new TimelineView(timelineViewModel) :
|
||||||
new TimelineLoadingView(vm); // vm is just needed for i18n
|
new TimelineLoadingView(vm); // vm is just needed for i18n
|
||||||
}),
|
}),
|
||||||
t.view(bottomView),
|
bottomView ? t.view(bottomView) : text(''),
|
||||||
])
|
])
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue