You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2020/10/05 11:56:37 UTC

[cloudstack-primate] branch master updated: Confirmation by pressing Space on confirm screens (#784)

This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack-primate.git


The following commit(s) were added to refs/heads/master by this push:
     new cfa0c45  Confirmation by pressing Space on confirm screens (#784)
cfa0c45 is described below

commit cfa0c45d9c25dfb35b43e4eb3a2c52555dd5495b
Author: Hoang Nguyen <ho...@unitech.vn>
AuthorDate: Mon Oct 5 18:56:31 2020 +0700

    Confirmation by pressing Space on confirm screens (#784)
    
    * submit button when pressing Space on confirm modal
    
    * removed console
    
    * add auto-focus into switch & remove keyup function
    
    * revert message on storagejs
---
 src/views/AutogenView.vue       | 1 +
 src/views/compute/DestroyVM.vue | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/views/AutogenView.vue b/src/views/AutogenView.vue
index c913fcd..b8f27c4 100644
--- a/src/views/AutogenView.vue
+++ b/src/views/AutogenView.vue
@@ -170,6 +170,7 @@
                   }]"
                   v-model="formModel[field.name]"
                   :placeholder="field.description"
+                  :autoFocus="fieldIndex === 0"
                 />
               </span>
               <span v-else-if="currentAction.mapping && field.name in currentAction.mapping && currentAction.mapping[field.name].options">
diff --git a/src/views/compute/DestroyVM.vue b/src/views/compute/DestroyVM.vue
index b466bee..9c8b982 100644
--- a/src/views/compute/DestroyVM.vue
+++ b/src/views/compute/DestroyVM.vue
@@ -30,7 +30,7 @@
               <a-icon type="info-circle" style="color: rgba(0,0,0,.45)" />
             </a-tooltip>
           </span>
-          <a-switch v-decorator="['expunge']" />
+          <a-switch v-decorator="['expunge']" :auto-focus="true" />
         </a-form-item>
 
         <a-form-item v-if="volumes.length > 0">