You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2021/12/24 09:39:13 UTC

[GitHub] [cloudstack] utchoang commented on a change in pull request #5809: ui: fix add network offering for vpc

utchoang commented on a change in pull request #5809:
URL: https://github.com/apache/cloudstack/pull/5809#discussion_r774951616



##########
File path: ui/src/components/CheckBoxSelectPair.vue
##########
@@ -97,12 +96,21 @@ export default {
   data () {
     return {
       checked: false,
-      selectedOption: null
+      selectedOption: null,
+      selectOptionsTimer: null
     }
   },
   created () {
     this.checked = this.defaultCheckBoxValue
   },
+  watch: {
+    selectOptions () {
+      clearTimeout(this.selectOptionsTimer)
+      this.selectOptionsTimer = setTimeout(() => {
+        this.handleSelectOptionsUpdated()

Review comment:
       @shwstppr In my opinion, instead of changing the choice of options according to VPC, we can reset those options to null/blank to avoid repetition causing form crashes. What do you think?




-- 
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: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org