DaanHoogland commented on code in PR #9925:
URL: https://github.com/apache/cloudstack/pull/9925#discussion_r1899534719


##########
ui/src/views/tools/ManageInstances.vue:
##########
@@ -1408,11 +1408,31 @@ export default {
         })
       }
     },
+    async fetchMoreVms (obj) {
+      var params = obj.params
+      params.token = obj.response.token
+      api('listVmwareDcVms', params).then(json => {
+        const obj = {
+          params: params,
+          response: json.listvmwaredcvmsresponse
+        }
+        this.unmanagedInstances.append(obj.response.unmanagedinstance)
+        this.checkForMoreVms(obj)
+      })
+    },
     onListUnmanagedInstancesFromVmware (obj) {
       this.selectedVmwareVcenter = obj.params
       this.unmanagedInstances = obj.response.unmanagedinstance
       this.itemCount.unmanaged = obj.response.count
-      this.unmanagedInstancesLoading = false
+      this.checkForMoreVms(obj)
+    },
+    checkForMoreVms (obj) {

Review Comment:
   I am still thinking on how to make this the best user experience, so far I 
just want the background loading to work while the use no longer needs to wait.



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