Make tabs undraggable
This commit is contained in:
parent
4586704238
commit
0e6c123b00
|
@ -49,6 +49,9 @@ class TabBar extends React.Component { // need "this"
|
||||||
/>
|
/>
|
||||||
</Overlay>
|
</Overlay>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// draggable=false is a workaround for https://github.com/mattermost/desktop/issues/667
|
||||||
|
// It would obstruct https://github.com/mattermost/desktop/issues/478
|
||||||
return (
|
return (
|
||||||
<NavItem
|
<NavItem
|
||||||
className='teamTabItem'
|
className='teamTabItem'
|
||||||
|
@ -56,6 +59,7 @@ class TabBar extends React.Component { // need "this"
|
||||||
id={id}
|
id={id}
|
||||||
eventKey={index}
|
eventKey={index}
|
||||||
ref={id}
|
ref={id}
|
||||||
|
draggable={false}
|
||||||
>
|
>
|
||||||
<span className={unreadCount === 0 ? '' : 'teamTabItem-label'}>{team.name}</span>
|
<span className={unreadCount === 0 ? '' : 'teamTabItem-label'}>{team.name}</span>
|
||||||
{ ' ' }
|
{ ' ' }
|
||||||
|
@ -71,6 +75,7 @@ class TabBar extends React.Component { // need "this"
|
||||||
id='addServerButton'
|
id='addServerButton'
|
||||||
eventKey='addServerButton'
|
eventKey='addServerButton'
|
||||||
title='Add new server'
|
title='Add new server'
|
||||||
|
draggable={false}
|
||||||
>
|
>
|
||||||
<Glyphicon glyph='plus'/>
|
<Glyphicon glyph='plus'/>
|
||||||
</NavItem>
|
</NavItem>
|
||||||
|
|
Loading…
Reference in a new issue