From 8cf29c9bbb084b13990edc185b2d54cd10bbb463 Mon Sep 17 00:00:00 2001
From: "Juan A."
Date: Thu, 13 Nov 2025 19:26:26 -0600
Subject: [PATCH] remove-architecture-selection
---
frontend/src/pages/HostDetail.jsx | 36 +++++--------------------------
1 file changed, 5 insertions(+), 31 deletions(-)
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
-
-
-