diff --git a/frontend/src/pages/HostDetail.jsx b/frontend/src/pages/HostDetail.jsx index f5976ed..f68a1c4 100644 --- a/frontend/src/pages/HostDetail.jsx +++ b/frontend/src/pages/HostDetail.jsx @@ -1664,10 +1664,8 @@ const CredentialsModal = ({ host, isOpen, onClose }) => { const [showApiKey, setShowApiKey] = useState(false); const [activeTab, setActiveTab] = useState("quick-install"); const [forceInstall, setForceInstall] = useState(false); - const [architecture, setArchitecture] = useState("amd64"); const apiIdInputId = useId(); const apiKeyInputId = useId(); - const architectureSelectId = useId(); const { data: serverUrlData } = useQuery({ queryKey: ["serverUrl"], @@ -1687,13 +1685,13 @@ const CredentialsModal = ({ host, isOpen, onClose }) => { return settings?.ignore_ssl_self_signed ? "-sk" : "-s"; }; - // Helper function to build installation URL with optional force flag and architecture + // Helper function to build installation URL with optional force flag const getInstallUrl = () => { const baseUrl = `${serverUrl}/api/v1/hosts/install`; - const params = new URLSearchParams(); - if (forceInstall) params.append("force", "true"); - params.append("arch", architecture); - return `${baseUrl}?${params.toString()}`; + if (forceInstall) { + return `${baseUrl}?force=true`; + } + return baseUrl; }; const copyToClipboard = async (text) => { @@ -1809,30 +1807,6 @@ const CredentialsModal = ({ host, isOpen, onClose }) => {
- {/* Architecture Selection */} -- Select the architecture of the target host -
-