@@ -122,7 +122,6 @@ export default {
122122 vcd .getStorage (this .storprofile , this .value ? .storprofile );
123123 });
124124
125- this .$emit (' validationChanged' , true );
126125 },
127126
128127 data () {
@@ -161,34 +160,42 @@ export default {
161160 },
162161 ' catalogs.selected' : {
163162 handler (val , oldVal ) {
163+ this .$emit (' validationChanged' , false );
164164 if (val .name === undefined ) {
165165 return ;
166166 }
167167 this .vcd .getTemplate (this .catalogitem , val .name , this .value ? .catalogitem );
168+ this .$emit (' validationChanged' , true );
168169 }
169170 },
170171 ' catalogitem.selected' : {
171172 handler (val , oldVal ) {
173+ this .$emit (' validationChanged' , false );
172174 if (val .name === undefined ) {
173175 return ;
174176 }
175177 this .vcd .getVAppVms (this .vAppVms , val .href );
178+ this .$emit (' validationChanged' , true );
176179 }
177180 },
178181 ' vAppVms.selected' : {
179182 handler (val , oldVal ) {
183+ this .$emit (' validationChanged' , false );
180184 if (val .osType === undefined ) {
181185 return ;
182186 }
183187 this .vcd .getOperatingSystem (this .operatingSystem , val .hardwareVersionHref , val .osType );
188+ this .$emit (' validationChanged' , true );
184189 }
185190 },
186191 ' operatingSystem.selected' : {
187192 handler (val , oldVal ) {
193+ this .$emit (' validationChanged' , false );
188194 if (val .name === undefined ) {
189195 return ;
190196 }
191197 this .vcd .setOptions (val, this .networkadaptertype , ' supportedNICType' , undefined , this .value ? .networkadaptertype );
198+ this .$emit (' validationChanged' , true );
192199 }
193200 }
194201 },
0 commit comments