From 32fe0520d72c4afcd067a104659fad42011f34e0 Mon Sep 17 00:00:00 2001 From: Hoang Nguyen Date: Mon, 5 Oct 2020 18:56:31 +0700 Subject: [PATCH] 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 Signed-off-by: Rohit Yadav --- ui/src/views/AutogenView.vue | 1 + ui/src/views/compute/DestroyVM.vue | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/src/views/AutogenView.vue b/ui/src/views/AutogenView.vue index c913fcd503f..b8f27c4909a 100644 --- a/ui/src/views/AutogenView.vue +++ b/ui/src/views/AutogenView.vue @@ -170,6 +170,7 @@ }]" v-model="formModel[field.name]" :placeholder="field.description" + :autoFocus="fieldIndex === 0" /> diff --git a/ui/src/views/compute/DestroyVM.vue b/ui/src/views/compute/DestroyVM.vue index b466bee243c..9c8b98285d8 100644 --- a/ui/src/views/compute/DestroyVM.vue +++ b/ui/src/views/compute/DestroyVM.vue @@ -30,7 +30,7 @@ - +