1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix unresponsive kubectl download binaries switch (#4807)

* Add observer wrapper to KubectlBinaries

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Add missing terminal title

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2022-02-03 14:57:55 +03:00 committed by GitHub
parent 09824a6e01
commit 00314aabc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -4,6 +4,7 @@
*/
import React, { useState } from "react";
import { observer } from "mobx-react";
import { Input, InputValidators } from "../input";
import { SubTitle } from "../layout/sub-title";
import { UserStore } from "../../../common/user-store";
@ -19,7 +20,7 @@ interface Dependencies {
defaultPathForKubectlBinaries: string
}
const NonInjectedKubectlBinaries: React.FC<Dependencies> = (({ defaultPathForKubectlBinaries }) => {
const NonInjectedKubectlBinaries: React.FC<Dependencies> = observer(({ defaultPathForKubectlBinaries }) => {
const userStore = UserStore.getInstance();
const [downloadPath, setDownloadPath] = useState(userStore.downloadBinariesPath || "");
const [binariesPath, setBinariesPath] = useState(userStore.kubectlBinariesPath || "");

View File

@ -24,7 +24,9 @@ export const Terminal = observer(() => {
: "System default shell"
);
return (<div>
return (<section>
<h2>Terminal</h2>
<section id="shell">
<SubTitle title="Terminal Shell Path"/>
<Input
@ -78,5 +80,5 @@ export const Terminal = observer(() => {
onChange={(value) => userStore.terminalConfig.fontFamily=value}
/>
</section>
</div>);
</section>);
});