Rename toggle --> open
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
e50b503897
commit
97e484b8e6
2 changed files with 2 additions and 2 deletions
|
@ -288,7 +288,7 @@ export class RoomViewModel extends ViewModel {
|
|||
return this._composerVM;
|
||||
}
|
||||
|
||||
toggleDetailsPanel() {
|
||||
openDetailsPanel() {
|
||||
let path = this.navigation.path.until("room");
|
||||
path = path.with(this.navigation.segment("details", true));
|
||||
this.navigation.applyPath(path);
|
||||
|
|
|
@ -68,7 +68,7 @@ export class RoomView extends TemplateView {
|
|||
} else {
|
||||
const vm = this.value;
|
||||
const options = [];
|
||||
options.push(Menu.option(vm.i18n`Room details`, () => vm.toggleDetailsPanel()))
|
||||
options.push(Menu.option(vm.i18n`Room details`, () => vm.openDetailsPanel()))
|
||||
if (vm.canLeave) {
|
||||
options.push(Menu.option(vm.i18n`Leave room`, () => vm.leaveRoom()).setDestructive());
|
||||
}
|
||||
|
|
Reference in a new issue