Skip to content

Commit

Permalink
Switch default tab
Browse files Browse the repository at this point in the history
  • Loading branch information
farhatahmad committed Jun 25, 2024
1 parent 6b1f93d commit d3b1528
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/javascript/components/rooms/room/FeatureTabs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default function FeatureTabs() {
const showRecTabs = (recordValue !== 'false');

return (
<Tabs className="wide-white pt-4 mx-0" defaultActiveKey={showRecTabs ? 'recordings' : 'presentation'} unmountOnExit>
<Tabs className="wide-white pt-4 mx-0" defaultActiveKey='settings' unmountOnExit>
{showRecTabs
&& (
<Tab className="background-whitesmoke" eventKey="recordings" title={t('recording.recordings')}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export default function RoomSettings() {
<div className="float-end mt-3">
<Stack direction="horizontal" gap={2}>
{
room.shared
room?.shared
&& (
<Modal
modalButton={(
Expand All @@ -134,7 +134,7 @@ export default function RoomSettings() {
)
}
{
(!room.shared || currentUser?.permissions?.ManageRooms === 'true')
(!room?.shared || currentUser?.permissions?.ManageRooms === 'true')
&& (
<Modal
modalButton={(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default function UpdateRoomNameForm({ friendlyId }) {
<h6 className="text-brand">{ t('room.room_name') }</h6>
<Form onSubmit={handleSubmit(updateRoom.mutate)}>
<Stack direction="horizontal">
<Form.Control type="text" defaultValue={room.name} {...register('room.name', { minLength: 2, maxLength: 255 })} />
<Form.Control type="text" defaultValue={room?.name} {...register('room.name', { minLength: 2, maxLength: 255 })} />
<Button type="submit" variant="brand" className="ms-3"> { t('update') } </Button>
</Stack>
</Form>
Expand Down

0 comments on commit d3b1528

Please sign in to comment.