From f0b09ed2f2d51400486a85fba2908400b1dd6c0c Mon Sep 17 00:00:00 2001 From: Reeshita Paul <77070824+reeshi-18@users.noreply.github.com> Date: Fri, 14 Jan 2022 18:31:14 +0530 Subject: [PATCH] [add] added enter to submit for admin onboarding (#100) --- src/components/adminConfigs/configTitle.vue | 6 ++++++ src/views/AdminLanding.vue | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/src/components/adminConfigs/configTitle.vue b/src/components/adminConfigs/configTitle.vue index 371d8e4..ad0452e 100644 --- a/src/components/adminConfigs/configTitle.vue +++ b/src/components/adminConfigs/configTitle.vue @@ -3,6 +3,7 @@ v-model="name" placeholder="Enter the name of competition to be displayed" class="adminFormTitle" + @keyup.enter="triggerNext" /> @@ -18,6 +19,11 @@ export default { methods: { emitName(compInfoName) { this.$emit("changed", compInfoName); + }, + triggerNext() { + if (this.name) { + this.$emit("triggerNext"); + } } }, watch: { diff --git a/src/views/AdminLanding.vue b/src/views/AdminLanding.vue index 4745018..8a6c93c 100644 --- a/src/views/AdminLanding.vue +++ b/src/views/AdminLanding.vue @@ -31,6 +31,7 @@ v-if="getCurrentStep() === 1" @changed="setCompName" :compName="this.compName" + @triggerNext="triggerNextButton" />