{#if $commandsCustomized['new.connection']?.enabled} runCommand('new.connection')} title="Add new connection"> runCommand('new.connection.folder')} title="Add new connection folder"> {/if} { var data = e.dataTransfer.getData('app_object_drag_data'); if (data) { handleDropOnGroup(data, ''); } }} > (getConnectionLabel(connection) || '').toUpperCase())} module={connectionAppObject} subItemsComponent={SubDatabaseList} expandOnClick isExpandable={data => $openedConnections.includes(data._id) && !data.singleDatabase} {filter} passProps={{ connectionColorFactory: $connectionColorFactory, showPinnedInsteadOfUnpin: true }} getIsExpanded={data => $expandedConnections.includes(data._id) && !data.singleDatabase} setIsExpanded={(data, value) => { expandedConnections.update(old => (value ? [...old, data._id] : old.filter(x => x != data._id))); }} groupIconFunc={chevronExpandIcon} groupFunc={data => data.parent} expandIconFunc={plusExpandIcon} onDropOnGroup={handleDropOnGroup} emptyGroupNames={$emptyConnectionGroupNames} sortGroups groupContextMenu={createGroupContextMenu} collapsedGroupNames={collapsedConnectionGroupNames} /> {#if (connectionsWithParent?.length > 0 && connectionsWithoutParent?.length > 0) || ($emptyConnectionGroupNames.length > 0 && connectionsWithoutParent?.length > 0)}
{/if} (getConnectionLabel(connection) || '').toUpperCase())} module={connectionAppObject} subItemsComponent={SubDatabaseList} expandOnClick isExpandable={data => $openedConnections.includes(data._id) && !data.singleDatabase} {filter} passProps={{ connectionColorFactory: $connectionColorFactory, showPinnedInsteadOfUnpin: true }} getIsExpanded={data => $expandedConnections.includes(data._id) && !data.singleDatabase} setIsExpanded={(data, value) => { expandedConnections.update(old => (value ? [...old, data._id] : old.filter(x => x != data._id))); }} /> {#if $connections && !$connections.find(x => !x.unsaved) && $openedConnections.length == 0 && $commandsCustomized['new.connection']?.enabled && !$openedTabs.find(x => !x.closedTime && x.tabComponent == 'ConnectionTab' && !x.props?.conid)} runCommand('new.connection')} fillHorizontal >Add new connection {/if}