mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-24 09:45:35 +08:00
fix(connections): disable sorting for close column
This commit is contained in:
parent
b4739d6dba
commit
98b5d62c02
@ -110,6 +110,7 @@ export default () => {
|
|||||||
const columns: ColumnDef<ConnectionWithSpeed>[] = [
|
const columns: ColumnDef<ConnectionWithSpeed>[] = [
|
||||||
{
|
{
|
||||||
accessorKey: CONNECTIONS_TABLE_ACCESSOR_KEY.Close,
|
accessorKey: CONNECTIONS_TABLE_ACCESSOR_KEY.Close,
|
||||||
|
enableSorting: false,
|
||||||
header: () => (
|
header: () => (
|
||||||
<div class="flex h-full items-center">
|
<div class="flex h-full items-center">
|
||||||
<Button
|
<Button
|
||||||
@ -308,6 +309,7 @@ export default () => {
|
|||||||
<td
|
<td
|
||||||
onContextMenu={(e) => {
|
onContextMenu={(e) => {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
|
typeof cell.renderValue() === 'string' &&
|
||||||
void writeClipboard(cell.renderValue() as string)
|
void writeClipboard(cell.renderValue() as string)
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
Loading…
Reference in New Issue
Block a user