summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkPostFormAttaches.vue
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2025-03-14 19:54:30 +0900
committersyuilo <4439005+syuilo@users.noreply.github.com>2025-03-14 19:54:30 +0900
commit2ddedd0ce69a5517df599cb0865b190b4efb6cd6 (patch)
tree9049fb57713d80f0da7733833b324df29f9476c4 /packages/frontend/src/components/MkPostFormAttaches.vue
parentUpdate CHANGELOG.md (diff)
downloadsharkey-2ddedd0ce69a5517df599cb0865b190b4efb6cd6.tar.gz
sharkey-2ddedd0ce69a5517df599cb0865b190b4efb6cd6.tar.bz2
sharkey-2ddedd0ce69a5517df599cb0865b190b4efb6cd6.zip
refactor
Diffstat (limited to 'packages/frontend/src/components/MkPostFormAttaches.vue')
-rw-r--r--packages/frontend/src/components/MkPostFormAttaches.vue3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/frontend/src/components/MkPostFormAttaches.vue b/packages/frontend/src/components/MkPostFormAttaches.vue
index 3ce0c4957b..c4926be53a 100644
--- a/packages/frontend/src/components/MkPostFormAttaches.vue
+++ b/packages/frontend/src/components/MkPostFormAttaches.vue
@@ -42,6 +42,7 @@ import * as os from '@/os.js';
import { misskeyApi } from '@/utility/misskey-api.js';
import { i18n } from '@/i18n.js';
import { prefer } from '@/preferences.js';
+import { DI } from '@/di.js';
const Sortable = defineAsyncComponent(() => import('vuedraggable').then(x => x.default));
@@ -50,7 +51,7 @@ const props = defineProps<{
detachMediaFn?: (id: string) => void;
}>();
-const mock = inject<boolean>('mock', false);
+const mock = inject(DI.mock, false);
const emit = defineEmits<{
(ev: 'update:modelValue', value: Misskey.entities.DriveFile[]): void;