diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-05-23 22:23:53 +1000 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-05-23 22:23:53 +1000 |
| commit | c2f8a84645dbb0d3159ad5b3831d0597854690ce (patch) | |
| tree | 979d48dafca39908c711a31eb0a8a89f9e60af93 /src/components/HelpModal.vue | |
| parent | 16503a01759bc4f3a930c957367b972b8e9c17cb (diff) | |
Add help modal button that opens tutorial
Needed to add code for skipping tutorial pane's welcome message.
Also fixed small unwanted click-propagation bug in SettingsModal.
Diffstat (limited to 'src/components/HelpModal.vue')
| -rw-r--r-- | src/components/HelpModal.vue | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/components/HelpModal.vue b/src/components/HelpModal.vue index 539d3dc..8b29a90 100644 --- a/src/components/HelpModal.vue +++ b/src/components/HelpModal.vue @@ -13,9 +13,13 @@ export default defineComponent({ this.$emit('help-modal-close'); } }, + onStartTutorial(){ + this.$emit('start-tutorial'); + this.$emit('help-modal-close'); + }, }, components: {CloseIcon, }, - emits: ['help-modal-close', ], + emits: ['help-modal-close', 'start-tutorial', ], }); </script> @@ -46,6 +50,9 @@ export default defineComponent({ in culpa qui officia deserunt mollit anim id est laborum. </div> + <button class="block bg-stone-700 text-white px-4 py-2 rounded" @click.stop="onStartTutorial"> + Start Tutorial + </button> </div> </div> </template> |
