Copilot commented on code in PR #13204:
URL: https://github.com/apache/cloudstack/pull/13204#discussion_r3281249053


##########
ui/src/views/image/RegisterOrUploadIso.vue:
##########
@@ -19,11 +19,27 @@
   <div
     class="form-layout"
     @keyup.ctrl.enter="handleSubmit">
-    <span v-if="uploadPercentage > 0">
+    <span v-if="uploading">
       <loading-outlined />
       {{ $t('message.upload.file.processing') }}
       <a-progress :percent="uploadPercentage" />
     </span>

Review Comment:
   `uploading` is referenced in the template (`v-if="uploading"`) and is 
assigned in `handleUpload()`, but it is not declared in `data()`. In Vue 
Options API this can result in the flag being non-reactive (UI not switching to 
the progress state). Add `uploading: false` to `data()` for this component.



-- 
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]

Reply via email to