1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 05:19:39 +02:00

fix(helm): fix helm move to advance deployments issues [EE-5999] (#10453)

* fix helm move to adv deployments
This commit is contained in:
Prabhat Khera 2023-10-12 11:02:09 +13:00 committed by GitHub
parent 7218eb0892
commit ff5b311eee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 39 additions and 24 deletions

View file

@ -23,6 +23,7 @@ export default class HelmTemplatesController {
this.getHelmRepoURLs = this.getHelmRepoURLs.bind(this);
this.getLatestCharts = this.getLatestCharts.bind(this);
this.getResourcePools = this.getResourcePools.bind(this);
this.clearHelmChart = this.clearHelmChart.bind(this);
$window.onbeforeunload = () => {
if (this.state.isEditorDirty) {
@ -31,6 +32,11 @@ export default class HelmTemplatesController {
};
}
clearHelmChart() {
this.state.chart = null;
this.onSelectHelmChart('');
}
editorUpdate(contentvalues) {
if (this.state.originalvalues === contentvalues) {
this.state.isEditorDirty = false;
@ -85,6 +91,7 @@ export default class HelmTemplatesController {
window.scrollTo(0, 0);
this.state.showCustomValues = false;
this.state.chart = chart;
this.onSelectHelmChart(chart.name);
await this.getHelmValues();
}