mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Add missing observer to make sure component updates
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
parent
ea07f94e9e
commit
0a6f1bbbdc
@ -163,15 +163,15 @@ exports[`add custom helm repository in preferences when navigating to preference
|
|||||||
>
|
>
|
||||||
<section
|
<section
|
||||||
id="kubernetes"
|
id="kubernetes"
|
||||||
>
|
|
||||||
<section
|
|
||||||
id="kubectl"
|
|
||||||
>
|
>
|
||||||
<h2
|
<h2
|
||||||
data-testid="kubernetes-header"
|
data-testid="kubernetes-header"
|
||||||
>
|
>
|
||||||
Kubernetes
|
Kubernetes
|
||||||
</h2>
|
</h2>
|
||||||
|
<section
|
||||||
|
id="kubectl"
|
||||||
|
>
|
||||||
<section>
|
<section>
|
||||||
<div
|
<div
|
||||||
class="SubTitle"
|
class="SubTitle"
|
||||||
@ -332,7 +332,9 @@ exports[`add custom helm repository in preferences when navigating to preference
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<hr />
|
<hr
|
||||||
|
class="horizontalLine"
|
||||||
|
/>
|
||||||
<section
|
<section
|
||||||
id="kube-sync"
|
id="kube-sync"
|
||||||
>
|
>
|
||||||
@ -367,7 +369,9 @@ exports[`add custom helm repository in preferences when navigating to preference
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<hr />
|
<hr
|
||||||
|
class="horizontalLine"
|
||||||
|
/>
|
||||||
<section
|
<section
|
||||||
id="helm"
|
id="helm"
|
||||||
>
|
>
|
||||||
@ -760,15 +764,15 @@ exports[`add custom helm repository in preferences when navigating to preference
|
|||||||
>
|
>
|
||||||
<section
|
<section
|
||||||
id="kubernetes"
|
id="kubernetes"
|
||||||
>
|
|
||||||
<section
|
|
||||||
id="kubectl"
|
|
||||||
>
|
>
|
||||||
<h2
|
<h2
|
||||||
data-testid="kubernetes-header"
|
data-testid="kubernetes-header"
|
||||||
>
|
>
|
||||||
Kubernetes
|
Kubernetes
|
||||||
</h2>
|
</h2>
|
||||||
|
<section
|
||||||
|
id="kubectl"
|
||||||
|
>
|
||||||
<section>
|
<section>
|
||||||
<div
|
<div
|
||||||
class="SubTitle"
|
class="SubTitle"
|
||||||
@ -929,7 +933,9 @@ exports[`add custom helm repository in preferences when navigating to preference
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<hr />
|
<hr
|
||||||
|
class="horizontalLine"
|
||||||
|
/>
|
||||||
<section
|
<section
|
||||||
id="kube-sync"
|
id="kube-sync"
|
||||||
>
|
>
|
||||||
@ -964,7 +970,9 @@ exports[`add custom helm repository in preferences when navigating to preference
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<hr />
|
<hr
|
||||||
|
class="horizontalLine"
|
||||||
|
/>
|
||||||
<section
|
<section
|
||||||
id="helm"
|
id="helm"
|
||||||
>
|
>
|
||||||
@ -1368,15 +1376,15 @@ exports[`add custom helm repository in preferences when navigating to preference
|
|||||||
>
|
>
|
||||||
<section
|
<section
|
||||||
id="kubernetes"
|
id="kubernetes"
|
||||||
>
|
|
||||||
<section
|
|
||||||
id="kubectl"
|
|
||||||
>
|
>
|
||||||
<h2
|
<h2
|
||||||
data-testid="kubernetes-header"
|
data-testid="kubernetes-header"
|
||||||
>
|
>
|
||||||
Kubernetes
|
Kubernetes
|
||||||
</h2>
|
</h2>
|
||||||
|
<section
|
||||||
|
id="kubectl"
|
||||||
|
>
|
||||||
<section>
|
<section>
|
||||||
<div
|
<div
|
||||||
class="SubTitle"
|
class="SubTitle"
|
||||||
@ -1537,7 +1545,9 @@ exports[`add custom helm repository in preferences when navigating to preference
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<hr />
|
<hr
|
||||||
|
class="horizontalLine"
|
||||||
|
/>
|
||||||
<section
|
<section
|
||||||
id="kube-sync"
|
id="kube-sync"
|
||||||
>
|
>
|
||||||
@ -1572,7 +1582,9 @@ exports[`add custom helm repository in preferences when navigating to preference
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<hr />
|
<hr
|
||||||
|
class="horizontalLine"
|
||||||
|
/>
|
||||||
<section
|
<section
|
||||||
id="helm"
|
id="helm"
|
||||||
>
|
>
|
||||||
@ -2087,15 +2099,15 @@ exports[`add custom helm repository in preferences when navigating to preference
|
|||||||
>
|
>
|
||||||
<section
|
<section
|
||||||
id="kubernetes"
|
id="kubernetes"
|
||||||
>
|
|
||||||
<section
|
|
||||||
id="kubectl"
|
|
||||||
>
|
>
|
||||||
<h2
|
<h2
|
||||||
data-testid="kubernetes-header"
|
data-testid="kubernetes-header"
|
||||||
>
|
>
|
||||||
Kubernetes
|
Kubernetes
|
||||||
</h2>
|
</h2>
|
||||||
|
<section
|
||||||
|
id="kubectl"
|
||||||
|
>
|
||||||
<section>
|
<section>
|
||||||
<div
|
<div
|
||||||
class="SubTitle"
|
class="SubTitle"
|
||||||
@ -2256,7 +2268,9 @@ exports[`add custom helm repository in preferences when navigating to preference
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<hr />
|
<hr
|
||||||
|
class="horizontalLine"
|
||||||
|
/>
|
||||||
<section
|
<section
|
||||||
id="kube-sync"
|
id="kube-sync"
|
||||||
>
|
>
|
||||||
@ -2291,7 +2305,9 @@ exports[`add custom helm repository in preferences when navigating to preference
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<hr />
|
<hr
|
||||||
|
class="horizontalLine"
|
||||||
|
/>
|
||||||
<section
|
<section
|
||||||
id="helm"
|
id="helm"
|
||||||
>
|
>
|
||||||
@ -2703,15 +2719,15 @@ exports[`add custom helm repository in preferences when navigating to preference
|
|||||||
>
|
>
|
||||||
<section
|
<section
|
||||||
id="kubernetes"
|
id="kubernetes"
|
||||||
>
|
|
||||||
<section
|
|
||||||
id="kubectl"
|
|
||||||
>
|
>
|
||||||
<h2
|
<h2
|
||||||
data-testid="kubernetes-header"
|
data-testid="kubernetes-header"
|
||||||
>
|
>
|
||||||
Kubernetes
|
Kubernetes
|
||||||
</h2>
|
</h2>
|
||||||
|
<section
|
||||||
|
id="kubectl"
|
||||||
|
>
|
||||||
<section>
|
<section>
|
||||||
<div
|
<div
|
||||||
class="SubTitle"
|
class="SubTitle"
|
||||||
@ -2872,7 +2888,9 @@ exports[`add custom helm repository in preferences when navigating to preference
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<hr />
|
<hr
|
||||||
|
class="horizontalLine"
|
||||||
|
/>
|
||||||
<section
|
<section
|
||||||
id="kube-sync"
|
id="kube-sync"
|
||||||
>
|
>
|
||||||
@ -2907,7 +2925,9 @@ exports[`add custom helm repository in preferences when navigating to preference
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<hr />
|
<hr
|
||||||
|
class="horizontalLine"
|
||||||
|
/>
|
||||||
<section
|
<section
|
||||||
id="helm"
|
id="helm"
|
||||||
>
|
>
|
||||||
@ -3422,15 +3442,15 @@ exports[`add custom helm repository in preferences when navigating to preference
|
|||||||
>
|
>
|
||||||
<section
|
<section
|
||||||
id="kubernetes"
|
id="kubernetes"
|
||||||
>
|
|
||||||
<section
|
|
||||||
id="kubectl"
|
|
||||||
>
|
>
|
||||||
<h2
|
<h2
|
||||||
data-testid="kubernetes-header"
|
data-testid="kubernetes-header"
|
||||||
>
|
>
|
||||||
Kubernetes
|
Kubernetes
|
||||||
</h2>
|
</h2>
|
||||||
|
<section
|
||||||
|
id="kubectl"
|
||||||
|
>
|
||||||
<section>
|
<section>
|
||||||
<div
|
<div
|
||||||
class="SubTitle"
|
class="SubTitle"
|
||||||
@ -3591,7 +3611,9 @@ exports[`add custom helm repository in preferences when navigating to preference
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<hr />
|
<hr
|
||||||
|
class="horizontalLine"
|
||||||
|
/>
|
||||||
<section
|
<section
|
||||||
id="kube-sync"
|
id="kube-sync"
|
||||||
>
|
>
|
||||||
@ -3626,7 +3648,9 @@ exports[`add custom helm repository in preferences when navigating to preference
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<hr />
|
<hr
|
||||||
|
class="horizontalLine"
|
||||||
|
/>
|
||||||
<section
|
<section
|
||||||
id="helm"
|
id="helm"
|
||||||
>
|
>
|
||||||
@ -4323,15 +4347,15 @@ exports[`add custom helm repository in preferences when navigating to preference
|
|||||||
>
|
>
|
||||||
<section
|
<section
|
||||||
id="kubernetes"
|
id="kubernetes"
|
||||||
>
|
|
||||||
<section
|
|
||||||
id="kubectl"
|
|
||||||
>
|
>
|
||||||
<h2
|
<h2
|
||||||
data-testid="kubernetes-header"
|
data-testid="kubernetes-header"
|
||||||
>
|
>
|
||||||
Kubernetes
|
Kubernetes
|
||||||
</h2>
|
</h2>
|
||||||
|
<section
|
||||||
|
id="kubectl"
|
||||||
|
>
|
||||||
<section>
|
<section>
|
||||||
<div
|
<div
|
||||||
class="SubTitle"
|
class="SubTitle"
|
||||||
@ -4492,7 +4516,9 @@ exports[`add custom helm repository in preferences when navigating to preference
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<hr />
|
<hr
|
||||||
|
class="horizontalLine"
|
||||||
|
/>
|
||||||
<section
|
<section
|
||||||
id="kube-sync"
|
id="kube-sync"
|
||||||
>
|
>
|
||||||
@ -4527,7 +4553,9 @@ exports[`add custom helm repository in preferences when navigating to preference
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<hr />
|
<hr
|
||||||
|
class="horizontalLine"
|
||||||
|
/>
|
||||||
<section
|
<section
|
||||||
id="helm"
|
id="helm"
|
||||||
>
|
>
|
||||||
@ -5042,15 +5070,15 @@ exports[`add custom helm repository in preferences when navigating to preference
|
|||||||
>
|
>
|
||||||
<section
|
<section
|
||||||
id="kubernetes"
|
id="kubernetes"
|
||||||
>
|
|
||||||
<section
|
|
||||||
id="kubectl"
|
|
||||||
>
|
>
|
||||||
<h2
|
<h2
|
||||||
data-testid="kubernetes-header"
|
data-testid="kubernetes-header"
|
||||||
>
|
>
|
||||||
Kubernetes
|
Kubernetes
|
||||||
</h2>
|
</h2>
|
||||||
|
<section
|
||||||
|
id="kubectl"
|
||||||
|
>
|
||||||
<section>
|
<section>
|
||||||
<div
|
<div
|
||||||
class="SubTitle"
|
class="SubTitle"
|
||||||
@ -5211,7 +5239,9 @@ exports[`add custom helm repository in preferences when navigating to preference
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<hr />
|
<hr
|
||||||
|
class="horizontalLine"
|
||||||
|
/>
|
||||||
<section
|
<section
|
||||||
id="kube-sync"
|
id="kube-sync"
|
||||||
>
|
>
|
||||||
@ -5246,7 +5276,9 @@ exports[`add custom helm repository in preferences when navigating to preference
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<hr />
|
<hr
|
||||||
|
class="horizontalLine"
|
||||||
|
/>
|
||||||
<section
|
<section
|
||||||
id="helm"
|
id="helm"
|
||||||
>
|
>
|
||||||
@ -5943,15 +5975,15 @@ exports[`add custom helm repository in preferences when navigating to preference
|
|||||||
>
|
>
|
||||||
<section
|
<section
|
||||||
id="kubernetes"
|
id="kubernetes"
|
||||||
>
|
|
||||||
<section
|
|
||||||
id="kubectl"
|
|
||||||
>
|
>
|
||||||
<h2
|
<h2
|
||||||
data-testid="kubernetes-header"
|
data-testid="kubernetes-header"
|
||||||
>
|
>
|
||||||
Kubernetes
|
Kubernetes
|
||||||
</h2>
|
</h2>
|
||||||
|
<section
|
||||||
|
id="kubectl"
|
||||||
|
>
|
||||||
<section>
|
<section>
|
||||||
<div
|
<div
|
||||||
class="SubTitle"
|
class="SubTitle"
|
||||||
@ -6112,7 +6144,9 @@ exports[`add custom helm repository in preferences when navigating to preference
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<hr />
|
<hr
|
||||||
|
class="horizontalLine"
|
||||||
|
/>
|
||||||
<section
|
<section
|
||||||
id="kube-sync"
|
id="kube-sync"
|
||||||
>
|
>
|
||||||
@ -6147,7 +6181,9 @@ exports[`add custom helm repository in preferences when navigating to preference
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<hr />
|
<hr
|
||||||
|
class="horizontalLine"
|
||||||
|
/>
|
||||||
<section
|
<section
|
||||||
id="helm"
|
id="helm"
|
||||||
>
|
>
|
||||||
@ -6663,15 +6699,15 @@ exports[`add custom helm repository in preferences when navigating to preference
|
|||||||
>
|
>
|
||||||
<section
|
<section
|
||||||
id="kubernetes"
|
id="kubernetes"
|
||||||
>
|
|
||||||
<section
|
|
||||||
id="kubectl"
|
|
||||||
>
|
>
|
||||||
<h2
|
<h2
|
||||||
data-testid="kubernetes-header"
|
data-testid="kubernetes-header"
|
||||||
>
|
>
|
||||||
Kubernetes
|
Kubernetes
|
||||||
</h2>
|
</h2>
|
||||||
|
<section
|
||||||
|
id="kubectl"
|
||||||
|
>
|
||||||
<section>
|
<section>
|
||||||
<div
|
<div
|
||||||
class="SubTitle"
|
class="SubTitle"
|
||||||
@ -6832,7 +6868,9 @@ exports[`add custom helm repository in preferences when navigating to preference
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<hr />
|
<hr
|
||||||
|
class="horizontalLine"
|
||||||
|
/>
|
||||||
<section
|
<section
|
||||||
id="kube-sync"
|
id="kube-sync"
|
||||||
>
|
>
|
||||||
@ -6867,7 +6905,9 @@ exports[`add custom helm repository in preferences when navigating to preference
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<hr />
|
<hr
|
||||||
|
class="horizontalLine"
|
||||||
|
/>
|
||||||
<section
|
<section
|
||||||
id="helm"
|
id="helm"
|
||||||
>
|
>
|
||||||
@ -7279,15 +7319,15 @@ exports[`add custom helm repository in preferences when navigating to preference
|
|||||||
>
|
>
|
||||||
<section
|
<section
|
||||||
id="kubernetes"
|
id="kubernetes"
|
||||||
>
|
|
||||||
<section
|
|
||||||
id="kubectl"
|
|
||||||
>
|
>
|
||||||
<h2
|
<h2
|
||||||
data-testid="kubernetes-header"
|
data-testid="kubernetes-header"
|
||||||
>
|
>
|
||||||
Kubernetes
|
Kubernetes
|
||||||
</h2>
|
</h2>
|
||||||
|
<section
|
||||||
|
id="kubectl"
|
||||||
|
>
|
||||||
<section>
|
<section>
|
||||||
<div
|
<div
|
||||||
class="SubTitle"
|
class="SubTitle"
|
||||||
@ -7448,7 +7488,9 @@ exports[`add custom helm repository in preferences when navigating to preference
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<hr />
|
<hr
|
||||||
|
class="horizontalLine"
|
||||||
|
/>
|
||||||
<section
|
<section
|
||||||
id="kube-sync"
|
id="kube-sync"
|
||||||
>
|
>
|
||||||
@ -7483,7 +7525,9 @@ exports[`add custom helm repository in preferences when navigating to preference
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<hr />
|
<hr
|
||||||
|
class="horizontalLine"
|
||||||
|
/>
|
||||||
<section
|
<section
|
||||||
id="helm"
|
id="helm"
|
||||||
>
|
>
|
||||||
@ -7884,15 +7928,15 @@ exports[`add custom helm repository in preferences when navigating to preference
|
|||||||
>
|
>
|
||||||
<section
|
<section
|
||||||
id="kubernetes"
|
id="kubernetes"
|
||||||
>
|
|
||||||
<section
|
|
||||||
id="kubectl"
|
|
||||||
>
|
>
|
||||||
<h2
|
<h2
|
||||||
data-testid="kubernetes-header"
|
data-testid="kubernetes-header"
|
||||||
>
|
>
|
||||||
Kubernetes
|
Kubernetes
|
||||||
</h2>
|
</h2>
|
||||||
|
<section
|
||||||
|
id="kubectl"
|
||||||
|
>
|
||||||
<section>
|
<section>
|
||||||
<div
|
<div
|
||||||
class="SubTitle"
|
class="SubTitle"
|
||||||
@ -8053,7 +8097,9 @@ exports[`add custom helm repository in preferences when navigating to preference
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<hr />
|
<hr
|
||||||
|
class="horizontalLine"
|
||||||
|
/>
|
||||||
<section
|
<section
|
||||||
id="kube-sync"
|
id="kube-sync"
|
||||||
>
|
>
|
||||||
@ -8088,7 +8134,9 @@ exports[`add custom helm repository in preferences when navigating to preference
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<hr />
|
<hr
|
||||||
|
class="horizontalLine"
|
||||||
|
/>
|
||||||
<section
|
<section
|
||||||
id="helm"
|
id="helm"
|
||||||
>
|
>
|
||||||
|
|||||||
@ -14,13 +14,14 @@ import type { Composite } from "../../application-menu/main/menu-items/get-compo
|
|||||||
import type { PreferenceTypes, PreferenceTab } from "./preference-items/preference-item-injection-token";
|
import type { PreferenceTypes, PreferenceTab } from "./preference-items/preference-item-injection-token";
|
||||||
import type { IComputedValue } from "mobx";
|
import type { IComputedValue } from "mobx";
|
||||||
import { Map } from "../../../renderer/components/map/map";
|
import { Map } from "../../../renderer/components/map/map";
|
||||||
|
import { observer } from "mobx-react";
|
||||||
|
|
||||||
interface Dependencies {
|
interface Dependencies {
|
||||||
closePreferences: () => void;
|
closePreferences: () => void;
|
||||||
pageComposite: IComputedValue<Composite<PreferenceTab>>;
|
pageComposite: IComputedValue<Composite<PreferenceTab>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
const NonInjectedPreferences = ({
|
const NonInjectedPreferences = observer(({
|
||||||
closePreferences,
|
closePreferences,
|
||||||
pageComposite,
|
pageComposite,
|
||||||
}: Dependencies) => {
|
}: Dependencies) => {
|
||||||
@ -38,7 +39,7 @@ const NonInjectedPreferences = ({
|
|||||||
{toPreferenceItemHierarchy(composite)}
|
{toPreferenceItemHierarchy(composite)}
|
||||||
</SettingLayout>
|
</SettingLayout>
|
||||||
);
|
);
|
||||||
};
|
});
|
||||||
|
|
||||||
const toPreferenceItemHierarchy = (composite: Composite<PreferenceTypes>) => {
|
const toPreferenceItemHierarchy = (composite: Composite<PreferenceTypes>) => {
|
||||||
switch (composite.value.kind) {
|
switch (composite.value.kind) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user