From 986f04aac022fa0c27fdf3c310e3ff25fa9466a9 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Thu, 3 Jun 2021 22:42:23 +0530 Subject: [PATCH] Move Room details menu entry to top Signed-off-by: RMidhunSuresh --- src/platform/web/ui/session/room/RoomView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/web/ui/session/room/RoomView.js b/src/platform/web/ui/session/room/RoomView.js index 7ecf73b1..c08d4b72 100644 --- a/src/platform/web/ui/session/room/RoomView.js +++ b/src/platform/web/ui/session/room/RoomView.js @@ -68,6 +68,7 @@ export class RoomView extends TemplateView { } else { const vm = this.value; const options = []; + options.push(Menu.optionWithLink(vm.i18n`Room details`, vm.detailsLink)) if (vm.canLeave) { options.push(Menu.optionWithButton(vm.i18n`Leave room`, () => vm.leaveRoom()).setDestructive()); } @@ -77,7 +78,6 @@ export class RoomView extends TemplateView { if (vm.canRejoin) { options.push(Menu.optionWithButton(vm.i18n`Rejoin room`, () => vm.rejoinRoom())); } - options.push(Menu.optionWithLink(vm.i18n`Room details`, vm.detailsLink)) if (!options.length) { return; }