Rename toggle --> open

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
RMidhunSuresh 2021-06-15 14:30:27 +05:30
parent e50b503897
commit 97e484b8e6
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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());
}