mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Call method from menu
This commit is contained in:
parent
3426240ef4
commit
44eddd0d6b
@ -116,8 +116,8 @@ export class LeftPanelView extends TemplateView {
|
||||
} else {
|
||||
const vm = this.value;
|
||||
const options = [];
|
||||
options.push(Menu.option(vm.i18n`Create Room`, () => { vm.showCreateRoomView(); }))
|
||||
options.push(Menu.option(vm.i18n`Join Room`, () => {}))
|
||||
options.push(Menu.option(vm.i18n`Create Room`, () => vm.showCreateRoomView()));
|
||||
options.push(Menu.option(vm.i18n`Join Room`, () => vm.showJoinRoomView()));
|
||||
this._createMenuPopup = new Popup(new Menu(options));
|
||||
this._createMenuPopup.trackInTemplateView(this);
|
||||
this._createMenuPopup.showRelativeTo(evt.target, 10);
|
||||
|
Loading…
Reference in New Issue
Block a user