Skip to content

Commit 89453d4

Browse files
committed
feat(CreateDomainModal): update isLastStep logic to use hideButtonIcon computed property
1 parent 4d1f7f8 commit 89453d4

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

core/ui/src/components/domains/CreateDomainModal.vue

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
@cancel="$emit('hide')"
1818
@previousStep="previousStep"
1919
@nextStep="nextStep"
20-
:isLastStep="step === 'configuringProvider'"
20+
:isLastStep="hideButtonIcon"
2121
>
2222
<template slot="title">{{ $t("domains.create_domain") }}</template>
2323
<template slot="content">
@@ -862,6 +862,15 @@ export default {
862862
863863
return info;
864864
},
865+
hideButtonIcon() {
866+
return (
867+
this.step === "volumes" ||
868+
(this.step === "node" &&
869+
this.selectedNode &&
870+
!this.nodesWithAdditionalStorage.includes(this.selectedNode.id)) ||
871+
this.step === "internalConfig"
872+
);
873+
},
865874
},
866875
watch: {
867876
isShown: function () {
@@ -1112,6 +1121,7 @@ export default {
11121121
this.step = "instance";
11131122
break;
11141123
case "volumes":
1124+
this.selectedVolume = {}; // reset selected volume when going back to node selection
11151125
this.step = "node";
11161126
break;
11171127
}

0 commit comments

Comments
 (0)