Skip to content

Commit

Permalink
[FIX] Toolbox icons order (#21739)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagoevanp authored Apr 23, 2021
1 parent 27c186b commit 7f33b8a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app/channel-settings/client/tabBar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ addAction('channel-settings', {
title: 'Room_Info',
icon: 'info-circled',
template: lazy(() => import('../../../client/views/room/contextualBar/Info')) as LazyExoticComponent<FC>,
order: 7,
order: 1,
});
2 changes: 1 addition & 1 deletion app/discussion/client/tabBar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ addAction('discussions', () => {
icon: 'discussion',
template,
full: true,
order: 7,
order: 3,
} : null), [discussionEnabled]);
});
2 changes: 1 addition & 1 deletion app/threads/client/flextab/threadlist.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ addAction('thread', (options) => {
{ unread > 0 && <Header.Badge variant={variant}>{unread}</Header.Badge> }
</Header.ToolBoxAction>;
},
order: 4,
order: 2,
} : null), [threadsEnabled, room.tunread?.length, room.tunreadUser?.length, room.tunreadGroup?.length]);
});
4 changes: 2 additions & 2 deletions app/videobridge/client/tabBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ addAction('bbb_video', ({ room }) => {
title: 'BBB_Video_Call',
icon: 'phone',
template: templateBBB,
order: live ? -1 : 0,
order: live ? -1 : 4,
renderAction: (props): ReactNode => <Header.ToolBoxAction {...props}>
{live ? <Header.Badge title={t('Started_a_video_call')} variant='primary'>!</Header.Badge> : null}
</Header.ToolBoxAction>,
Expand Down Expand Up @@ -65,7 +65,7 @@ addAction('video', ({ room }) => {
icon: 'phone',
template: templateJitsi,
full: true,
order: live ? -1 : 0,
order: live ? -1 : 4,
renderAction: (props): ReactNode => <Header.ToolBoxAction {...props}>
{live && <Header.Badge title={t('Started_a_video_call')} variant='primary'>!</Header.Badge>}
</Header.ToolBoxAction>,
Expand Down
10 changes: 5 additions & 5 deletions client/views/room/lib/Toolbox/defaultActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ addAction('rocket-search', {
title: 'Search_Messages',
icon: 'magnifier',
template: 'RocketSearch',
order: 4,
order: 6,
});

addAction('user-info', {
Expand All @@ -18,7 +18,7 @@ addAction('user-info', {
title: 'User_Info',
icon: 'user',
template: lazy(() => import('../../MemberListRouter')),
order: 5,
order: 1,
});

addAction('contact-profile', {
Expand All @@ -29,7 +29,7 @@ addAction('contact-profile', {
template: lazy(
() => import('../../../omnichannel/directory/contacts/contextualBar/ContactsContextualBar'),
),
order: 5,
order: 1,
});

addAction('user-info-group', {
Expand All @@ -38,7 +38,7 @@ addAction('user-info-group', {
title: 'Members',
icon: 'team',
template: lazy(() => import('../../MemberListRouter')),
order: 5,
order: 1,
});

addAction('members-list', ({ room }) => {
Expand All @@ -65,7 +65,7 @@ addAction('uploaded-files-list', {
title: 'Files',
icon: 'clip',
template: lazy(() => import('../../contextualBar/RoomFiles')),
order: 6,
order: 7,
});

addAction('keyboard-shortcut-list', {
Expand Down

0 comments on commit 7f33b8a

Please sign in to comment.