mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-29 05:38:30 +01:00
チュートリアルで詰む問題を修正
This commit is contained in:
parent
dd4e3726ab
commit
cf58b4dc2e
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
},
|
||||
}];
|
||||
|
|
Loading…
Reference in a new issue