diff --git a/frontend/src/pages/HostDetail.jsx b/frontend/src/pages/HostDetail.jsx index 7d25922..105f965 100644 --- a/frontend/src/pages/HostDetail.jsx +++ b/frontend/src/pages/HostDetail.jsx @@ -1645,10 +1645,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"], @@ -1668,13 +1666,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) => { @@ -1790,30 +1788,6 @@ const CredentialsModal = ({ host, isOpen, onClose }) => {
- {/* Architecture Selection */} -- Select the architecture of the target host -
-