mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Load model on every release details open
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
a90b51c4ac
commit
eddb5bdb56
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
import "./release-details.scss";
|
import "./release-details.scss";
|
||||||
|
|
||||||
import React, { useEffect } from "react";
|
import React from "react";
|
||||||
|
|
||||||
import { Link } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
import { DrawerItem, DrawerTitle } from "../../drawer";
|
import { DrawerItem, DrawerTitle } from "../../drawer";
|
||||||
@ -85,6 +85,7 @@ const NonInjectedReleaseDetailsContent = observer(({ model }: Dependencies & Rel
|
|||||||
|
|
||||||
<ReleaseValues
|
<ReleaseValues
|
||||||
configuration={model.configuration}
|
configuration={model.configuration}
|
||||||
|
release={model.release.name}
|
||||||
onlyUserSuppliedValuesAreShown={
|
onlyUserSuppliedValuesAreShown={
|
||||||
model.onlyUserSuppliedValuesAreShown
|
model.onlyUserSuppliedValuesAreShown
|
||||||
}
|
}
|
||||||
@ -150,10 +151,11 @@ const ResourceGroup = ({
|
|||||||
|
|
||||||
interface ReleaseValuesProps {
|
interface ReleaseValuesProps {
|
||||||
configuration: ConfigurationInput;
|
configuration: ConfigurationInput;
|
||||||
|
release: string;
|
||||||
onlyUserSuppliedValuesAreShown: OnlyUserSuppliedValuesAreShownToggle;
|
onlyUserSuppliedValuesAreShown: OnlyUserSuppliedValuesAreShownToggle;
|
||||||
}
|
}
|
||||||
|
|
||||||
const ReleaseValues = observer(({ configuration, onlyUserSuppliedValuesAreShown }: ReleaseValuesProps) => {
|
const ReleaseValues = observer(({ configuration, release, onlyUserSuppliedValuesAreShown }: ReleaseValuesProps) => {
|
||||||
const configurationIsLoading = configuration.isLoading.get();
|
const configurationIsLoading = configuration.isLoading.get();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -170,7 +172,7 @@ const ReleaseValues = observer(({ configuration, onlyUserSuppliedValuesAreShown
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
<MonacoEditor
|
<MonacoEditor
|
||||||
id="helm-release-configuration"
|
id={`helm-release-configuration-${release}`}
|
||||||
style={{ minHeight: 300 }}
|
style={{ minHeight: 300 }}
|
||||||
value={configuration.nonSavedValue.get()}
|
value={configuration.nonSavedValue.get()}
|
||||||
onChange={configuration.onChange}
|
onChange={configuration.onChange}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user