Merge branch 'master' into grid-refactor

This commit is contained in:
Jan Prochazka
2020-10-22 12:32:05 +02:00
9 changed files with 328 additions and 87 deletions

View File

@@ -176,7 +176,14 @@ export default function TabsPanel() {
const closeTab = closeTabFunc((x, active) => x.tabid == active.tabid);
const closeAll = () => {
setOpenedTabs([]);
const closedTime = new Date().getTime();
setOpenedTabs((tabs) =>
tabs.map((tab) => ({
...tab,
closedTime: tab.closedTime || closedTime,
selected: false,
}))
);
};
const closeWithSameDb = closeTabFunc(
(x, active) =>