aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-06-24 16:02:17 +1000
committerTerry Truong <terry06890@gmail.com>2022-06-24 16:02:17 +1000
commitf8fb0af9aaacf96bb82fab006cc4bf32565fd61c (patch)
treeb9a64808ee7dae1b8fde109071b67b2d52543578 /src/components
parente034e2ea9e74cf6f01ea4f978a3fb61e019c7d4b (diff)
Enable skipping tutorial on startup
Diffstat (limited to 'src/components')
-rw-r--r--src/components/TutorialPane.vue10
1 files changed, 7 insertions, 3 deletions
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', ],
});
</script>
@@ -112,8 +116,8 @@ export default defineComponent({
<r-button class="bg-stone-800 text-white" @click="onStartTutorial">
Start Tutorial
</r-button>
- <r-button class="bg-stone-800 text-white" @click="onClose">
- Close
+ <r-button class="bg-stone-800 text-white" @click="onSkipTutorial">
+ Skip
</r-button>
</div>
</template>