summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkWindow.vue
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-04-01 13:42:40 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2023-04-01 13:42:40 +0900
commitc823cbe63b30d622d240adb92b696d0f507d084d (patch)
tree1d2dadb135abd92e02b04281fd6224b4b1376054 /packages/frontend/src/components/MkWindow.vue
parentMerge branch 'develop' of https://github.com/misskey-dev/misskey into develop (diff)
downloadsharkey-c823cbe63b30d622d240adb92b696d0f507d084d.tar.gz
sharkey-c823cbe63b30d622d240adb92b696d0f507d084d.tar.bz2
sharkey-c823cbe63b30d622d240adb92b696d0f507d084d.zip
refactor(frontend): remove $store
Diffstat (limited to 'packages/frontend/src/components/MkWindow.vue')
-rw-r--r--packages/frontend/src/components/MkWindow.vue9
1 files changed, 5 insertions, 4 deletions
diff --git a/packages/frontend/src/components/MkWindow.vue b/packages/frontend/src/components/MkWindow.vue
index e7ad2b9a43..30b5391e9a 100644
--- a/packages/frontend/src/components/MkWindow.vue
+++ b/packages/frontend/src/components/MkWindow.vue
@@ -1,9 +1,9 @@
<template>
<Transition
- :enter-active-class="$store.state.animation ? $style.transition_window_enterActive : ''"
- :leave-active-class="$store.state.animation ? $style.transition_window_leaveActive : ''"
- :enter-from-class="$store.state.animation ? $style.transition_window_enterFrom : ''"
- :leave-to-class="$store.state.animation ? $style.transition_window_leaveTo : ''"
+ :enter-active-class="defaultStore.state.animation ? $style.transition_window_enterActive : ''"
+ :leave-active-class="defaultStore.state.animation ? $style.transition_window_leaveActive : ''"
+ :enter-from-class="defaultStore.state.animation ? $style.transition_window_enterFrom : ''"
+ :leave-to-class="defaultStore.state.animation ? $style.transition_window_leaveTo : ''"
appear
@after-leave="$emit('closed')"
>
@@ -47,6 +47,7 @@ import contains from '@/scripts/contains';
import * as os from '@/os';
import { MenuItem } from '@/types/menu';
import { i18n } from '@/i18n';
+import { defaultStore } from '@/store';
const minHeight = 50;
const minWidth = 250;