replay tutorial from help menu

This commit is contained in:
ThatOneCalculator 2022-11-12 13:46:13 -08:00
parent 1d0fcee862
commit 9ff9bb0a44
1 changed files with 9 additions and 0 deletions

View File

@ -57,6 +57,7 @@
<script lang="ts" setup> <script lang="ts" setup>
import { computed, defineAsyncComponent, ref, watch } from 'vue'; import { computed, defineAsyncComponent, ref, watch } from 'vue';
import XTutorial from '@/components/MkTutorialDialog.vue';
import * as os from '@/os'; import * as os from '@/os';
import { navbarItemDef } from '@/navbar'; import { navbarItemDef } from '@/navbar';
import { $i, openAccountMenu as openAccountMenu_ } from '@/account'; import { $i, openAccountMenu as openAccountMenu_ } from '@/account';
@ -139,6 +140,14 @@ function openInstanceMenu(ev: MouseEvent) {
to: '/mfm-cheat-sheet', to: '/mfm-cheat-sheet',
text: i18n.ts._mfm.cheatSheet, text: i18n.ts._mfm.cheatSheet,
icon: 'ph-code-bold ph-lg', icon: 'ph-code-bold ph-lg',
}, {
type: 'button',
action: async () => {
defaultStore.set('tutorial', 0);
os.popup(XTutorial, {}, {}, 'closed');
},
text: i18n.ts.tutorial,
icon: 'ph-circle-wavy-question-bold ph-lg',
}, { }, {
type: 'link', type: 'link',
to: '/scratchpad', to: '/scratchpad',