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:
parent
09824a6e01
commit
00314aabc0
@ -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 || "");
|
||||
|
||||
@ -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>);
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user