Call method from menu

This commit is contained in:
RMidhunSuresh 2022-09-12 17:24:58 +05:30
parent 3426240ef4
commit 44eddd0d6b
No known key found for this signature in database

View File

@ -116,8 +116,8 @@ export class LeftPanelView extends TemplateView {
} else { } else {
const vm = this.value; const vm = this.value;
const options = []; const options = [];
options.push(Menu.option(vm.i18n`Create Room`, () => { vm.showCreateRoomView(); })) options.push(Menu.option(vm.i18n`Create Room`, () => vm.showCreateRoomView()));
options.push(Menu.option(vm.i18n`Join Room`, () => {})) options.push(Menu.option(vm.i18n`Join Room`, () => vm.showJoinRoomView()));
this._createMenuPopup = new Popup(new Menu(options)); this._createMenuPopup = new Popup(new Menu(options));
this._createMenuPopup.trackInTemplateView(this); this._createMenuPopup.trackInTemplateView(this);
this._createMenuPopup.showRelativeTo(evt.target, 10); this._createMenuPopup.showRelativeTo(evt.target, 10);