Skip to content

Commit

Permalink
[add] added enter to submit for admin onboarding (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
reeshipaul authored Jan 14, 2022
1 parent bbe5550 commit f0b09ed
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/adminConfigs/configTitle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
v-model="name"
placeholder="Enter the name of competition to be displayed"
class="adminFormTitle"
@keyup.enter="triggerNext"
/>
</template>

Expand All @@ -18,6 +19,11 @@ export default {
methods: {
emitName(compInfoName) {
this.$emit("changed", compInfoName);
},
triggerNext() {
if (this.name) {
this.$emit("triggerNext");
}
}
},
watch: {
Expand Down
4 changes: 4 additions & 0 deletions src/views/AdminLanding.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
v-if="getCurrentStep() === 1"
@changed="setCompName"
:compName="this.compName"
@triggerNext="triggerNextButton"
/>
<ConfigContent
v-if="getCurrentStep() === 3"
Expand Down Expand Up @@ -284,6 +285,9 @@ export default {
closeModal() {
this.showPreviewModal = false;
},
triggerNextButton() {
this.goNext();
},
submitConfigs() {
let startEndTime = this.getDateTimeString();
let startingTime = startEndTime.startingTime;
Expand Down

0 comments on commit f0b09ed

Please sign in to comment.