shwstppr commented on code in PR #10865:
URL: https://github.com/apache/cloudstack/pull/10865#discussion_r2095272302
##########
ui/src/views/image/RegisterOrUploadIso.vue:
##########
@@ -467,6 +478,12 @@ export default {
this.fileList = newFileList
this.form.file = undefined
},
+ handleDirectDownloadChange () {
+ if (this.form.zoneid && this.zoneList.find(entry => entry.id ===
this.form.zoneid)) {
+ return
+ }
+ this.form.zoneid = this.zoneList?.[0]?.id || ''
Review Comment:
@weizhouapache yes. This is for the case when the user selects
direct-download, then selects an edge zone but then changes direct-download to
false. Earlier selected zone will not be available now se the code selects the
first zone from the list
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]