From 000ad98d307ed8d4cf1bfbe96f39a301ce5ca268 Mon Sep 17 00:00:00 2001 From: Vincent Fiduccia Date: Thu, 10 Sep 2020 17:31:16 -0700 Subject: [PATCH] Fix question charts saving to values (#1221) --- pages/c/_cluster/apps/install.vue | 8 ++++++-- plugins/steve/resource-instance.js | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/pages/c/_cluster/apps/install.vue b/pages/c/_cluster/apps/install.vue index b00508abf8..d97ea89dd2 100644 --- a/pages/c/_cluster/apps/install.vue +++ b/pages/c/_cluster/apps/install.vue @@ -306,6 +306,10 @@ export default { return EDITOR_MODES.EDIT_CODE; }, + + hasQuestions() { + return this.versionInfo && !!this.versionInfo.questions; + } }, watch: { @@ -525,7 +529,7 @@ export default { actionInput(isUpgrade) { const fromChart = this.versionInfo.values || {}; - if ( !this.valuesComponent ) { + if ( !this.valuesComponent && !this.hasQuestions ) { try { this.chartValues = jsyaml.safeLoad(this.valuesYaml); } catch (err) { @@ -787,7 +791,7 @@ export default {