From f8fb0af9aaacf96bb82fab006cc4bf32565fd61c Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Fri, 24 Jun 2022 16:02:17 +1000 Subject: Enable skipping tutorial on startup --- src/components/TutorialPane.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/components/TutorialPane.vue') diff --git a/src/components/TutorialPane.vue b/src/components/TutorialPane.vue index 5e6c1c0..3cc1eb6 100644 --- a/src/components/TutorialPane.vue +++ b/src/components/TutorialPane.vue @@ -49,6 +49,10 @@ export default defineComponent({ this.stage = 1; this.setEnabledFeatures(); }, + onSkipTutorial(){ + this.$emit('skip'); + this.$emit('close'); + }, onPrevClick(){ this.stage = Math.max(1, this.stage - 1); this.setEnabledFeatures(); @@ -90,7 +94,7 @@ export default defineComponent({ } }, components: {CloseIcon, RButton, }, - emits: ['close', 'stage-chg', ], + emits: ['close', 'stage-chg', 'skip', ], }); @@ -112,8 +116,8 @@ export default defineComponent({ Start Tutorial - - Close + + Skip -- cgit v1.2.3