mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-21 15:33:11 +01:00
Revert "Make Tabs closable by mouseclick. Closes #778"
This commit is contained in:
parent
7f7b3f479a
commit
e274aedb9a
@ -4,7 +4,7 @@ import filter from 'lodash/filter';
|
||||
import classnames from 'classnames';
|
||||
import { IconChevronRight, IconChevronLeft } from '@tabler/icons';
|
||||
import { useSelector, useDispatch } from 'react-redux';
|
||||
import { closeTabs, focusTab } from 'providers/ReduxStore/slices/tabs';
|
||||
import { focusTab } from 'providers/ReduxStore/slices/tabs';
|
||||
import NewRequest from 'components/Sidebar/NewRequest';
|
||||
import CollectionToolBar from './CollectionToolBar';
|
||||
import RequestTab from './RequestTab';
|
||||
@ -35,14 +35,6 @@ const RequestTabs = () => {
|
||||
);
|
||||
};
|
||||
|
||||
const handleCloseClick = (tab) => {
|
||||
dispatch(
|
||||
closeTabs({
|
||||
tabUids: [tab.uid]
|
||||
})
|
||||
);
|
||||
};
|
||||
|
||||
const createNewTab = () => setNewRequestModalOpen(true);
|
||||
|
||||
if (!activeTabUid) {
|
||||
@ -118,7 +110,6 @@ const RequestTabs = () => {
|
||||
className={getTabClassname(tab, index)}
|
||||
role="tab"
|
||||
onClick={() => handleClick(tab)}
|
||||
onAuxClick={() => handleCloseClick(tab)}
|
||||
>
|
||||
<RequestTab key={tab.uid} tab={tab} collection={activeCollection} />
|
||||
</li>
|
||||
|
Loading…
Reference in New Issue
Block a user