connection context menu

This commit is contained in:
Jan Prochazka
2021-02-28 18:12:13 +01:00
parent 5929a01010
commit c497c1ceca
5 changed files with 61 additions and 4 deletions

View File

@@ -102,7 +102,7 @@
}
};
const tabContextMenu = (tabid, props) => () => {
const getContextMenu = (tabid, props) => () => {
const { conid, database } = props || {};
const res = [
{
@@ -147,7 +147,7 @@
class:selected={tab.selected}
on:click={e => handleTabClick(e, tab.tabid)}
on:mouseup={e => handleMouseUp(e, tab.tabid)}
use:contextMenu={tabContextMenu(tab.tabid, tab.props)}
use:contextMenu={getContextMenu(tab.tabid, tab.props)}
>
<FontIcon icon={tab.busy ? 'icon loading' : tab.icon} />
<span class="file-name">