From d6fbc3b5ad32b0d7daa42a9936ec6f5ea7be177f Mon Sep 17 00:00:00 2001 From: Aarnav Tale Date: Sun, 18 May 2025 11:34:09 -0400 Subject: [PATCH] fix: use corrected user ids for submission fields on the api --- app/routes/machines/dialogs/move.tsx | 8 ++++++++ app/routes/machines/machine-actions.ts | 4 ++-- app/routes/settings/auth-keys/actions.ts | 10 +++++----- app/routes/settings/auth-keys/dialogs/add-auth-key.tsx | 9 +++++++-- .../settings/auth-keys/dialogs/expire-auth-key.tsx | 4 +--- 5 files changed, 23 insertions(+), 12 deletions(-) diff --git a/app/routes/machines/dialogs/move.tsx b/app/routes/machines/dialogs/move.tsx index 7ac3d92..aa73022 100644 --- a/app/routes/machines/dialogs/move.tsx +++ b/app/routes/machines/dialogs/move.tsx @@ -1,3 +1,4 @@ +import { Key, useState } from 'react'; import Dialog from '~/components/Dialog'; import Select from '~/components/Select'; import type { Machine, User } from '~/types'; @@ -10,6 +11,8 @@ interface MoveProps { } export default function Move({ machine, users, isOpen, setIsOpen }: MoveProps) { + const [userId, setUserId] = useState(null); + return ( @@ -19,11 +22,16 @@ export default function Move({ machine, users, isOpen, setIsOpen }: MoveProps) { + + Expire auth key? - {/* TODO: Why is Headscale using email as the user ID here? - https://github.com/juanfont/headscale/issues/2520 */} - + Expiring this authentication key will immediately prevent it from