mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-10 05:15: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,7 +309,8 @@ export default () => {
|
|||||||
<td
|
<td
|
||||||
onContextMenu={(e) => {
|
onContextMenu={(e) => {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
void writeClipboard(cell.renderValue() as string)
|
typeof cell.renderValue() === 'string' &&
|
||||||
|
void writeClipboard(cell.renderValue() as string)
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{flexRender(
|
{flexRender(
|
||||||
|
Loading…
Reference in New Issue
Block a user