From 4e9c6d73c4053263bde80bf9c8dcc1794392b3bf Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Thu, 17 Sep 2020 11:11:04 -0400 Subject: [PATCH] make path to kubectl setting consistent Signed-off-by: Sebastian Malton --- .../+preferences/kubectl-binaries.tsx | 40 +++++++------------ 1 file changed, 14 insertions(+), 26 deletions(-) diff --git a/src/renderer/components/+preferences/kubectl-binaries.tsx b/src/renderer/components/+preferences/kubectl-binaries.tsx index da06109efe..08cdcce127 100644 --- a/src/renderer/components/+preferences/kubectl-binaries.tsx +++ b/src/renderer/components/+preferences/kubectl-binaries.tsx @@ -13,40 +13,16 @@ export const KubectlBinaries = observer(({ preferences }: { preferences: UserPre const [downloadPath, setDownloadPath] = useState(preferences.downloadBinariesPath || ""); const [binariesPath, setBinariesPath] = useState(preferences.kubectlBinariesPath || ""); - console.log(preferences); - const downloadMirrorOptions: SelectOption[] = [ { value: "default", label: "Default (Google)" }, { value: "china", label: "China (Azure)" }, ] - const save = () => { preferences.downloadBinariesPath = downloadPath; preferences.kubectlBinariesPath = binariesPath; } - const renderPath = () => { - if (preferences.downloadKubectlBinaries) { - return null; - } - return ( - <> - - - - Default:{" "}{Kubectl.bundledKubectlPath} - - - ); - } - return ( <>

Kubectl Binary

@@ -70,7 +46,7 @@ export const KubectlBinaries = observer(({ preferences }: { preferences: UserPre The directory to download binaries into. - {renderPath()} + + + + The path to the kubectl binary on the system. + ); });