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

This commit is contained in:
kakkokari-gtyih 2024-10-25 11:33:39 +09:00
parent dd4e3726ab
commit cf58b4dc2e

View file

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