mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 22:17:30 -07:00
replay tutorial from help menu
This commit is contained in:
parent
3f2e6281d8
commit
cb1f162c5e
1 changed files with 9 additions and 0 deletions
|
@ -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',
|
||||||
|
|
Loading…
Reference in a new issue