チュートリアルで詰む問題を修正

This commit is contained in:
kakkokari-gtyih 2024-10-25 11:33:39 +09:00
parent dd4e3726ab
commit cf58b4dc2e
1 changed files with 4 additions and 1 deletions

View File

@ -31,7 +31,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { shallowRef, computed } from 'vue'; import { shallowRef, computed, inject } from 'vue';
import * as Misskey from 'misskey-js'; import * as Misskey from 'misskey-js';
import MkModal from '@/components/MkModal.vue'; import MkModal from '@/components/MkModal.vue';
@ -44,6 +44,8 @@ import number from '@/filters/number.js';
import type { NonModalCompatibleInnerMenuItem } from '@/types/menu.js'; import type { NonModalCompatibleInnerMenuItem } from '@/types/menu.js';
const mock = inject<boolean>('mock', false);
const modal = shallowRef<InstanceType<typeof MkModal>>(); const modal = shallowRef<InstanceType<typeof MkModal>>();
const props = defineProps<{ const props = defineProps<{
@ -87,6 +89,7 @@ const menuDef = computed<NonModalCompatibleInnerMenuItem[]>(() => {
text: i18n.ts.reset, text: i18n.ts.reset,
danger: true, danger: true,
action: () => { action: () => {
if (mock) return;
reset(); reset();
}, },
}]; }];