1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-08-12 11:26:47 -04:00
parent 18db8d544d
commit a254473141

View File

@ -49,7 +49,7 @@ const upgradeChartModelInjectable = getInjectable({
const tabData = await waitUntilDefined(() => upgradeChartTabStore.getData(tab.id)); const tabData = await waitUntilDefined(() => upgradeChartTabStore.getData(tab.id));
const release = await waitUntilDefined(() => releases.value.get().find(release => release.getName() === tabData.releaseName)); const release = await waitUntilDefined(() => releases.value.get().find(release => release.getName() === tabData.releaseName));
const versions = di.inject(helmChartVersionsInjectable, release); const versions = di.inject(helmChartVersionsInjectable, release);
const storedConfigration = asyncComputed(() => requestHelmReleaseConfiguration( const storedConfiguration = asyncComputed(() => requestHelmReleaseConfiguration(
release.getName(), release.getName(),
release.getNs(), release.getNs(),
true, true,
@ -60,7 +60,7 @@ const upgradeChartModelInjectable = getInjectable({
const configrationValue = observable.box<string>(); const configrationValue = observable.box<string>();
const configrationEditError = observable.box<string>(); const configrationEditError = observable.box<string>();
const configration: UpgradeChartModel["configration"] = { const configration: UpgradeChartModel["configration"] = {
value: computed(() => configrationValue.get() ?? storedConfigration.value.get()), value: computed(() => configrationValue.get() ?? storedConfiguration.value.get()),
set: action((value) => { set: action((value) => {
configrationValue.set(value); configrationValue.set(value);
configrationEditError.set(undefined); configrationEditError.set(undefined);
@ -107,7 +107,7 @@ const upgradeChartModelInjectable = getInjectable({
...selectedVersion, ...selectedVersion,
}, },
); );
storedConfigration.invalidate(); storedConfiguration.invalidate();
return { return {
completedSuccessfully: true, completedSuccessfully: true,