diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-04-01 13:42:40 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-04-01 13:42:40 +0900 |
| commit | c823cbe63b30d622d240adb92b696d0f507d084d (patch) | |
| tree | 1d2dadb135abd92e02b04281fd6224b4b1376054 /packages/frontend/src/components/MkContextMenu.vue | |
| parent | Merge branch 'develop' of https://github.com/misskey-dev/misskey into develop (diff) | |
| download | misskey-c823cbe63b30d622d240adb92b696d0f507d084d.tar.gz misskey-c823cbe63b30d622d240adb92b696d0f507d084d.tar.bz2 misskey-c823cbe63b30d622d240adb92b696d0f507d084d.zip | |
refactor(frontend): remove $store
Diffstat (limited to 'packages/frontend/src/components/MkContextMenu.vue')
| -rw-r--r-- | packages/frontend/src/components/MkContextMenu.vue | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/packages/frontend/src/components/MkContextMenu.vue b/packages/frontend/src/components/MkContextMenu.vue index 21cccaabde..5bdf477241 100644 --- a/packages/frontend/src/components/MkContextMenu.vue +++ b/packages/frontend/src/components/MkContextMenu.vue @@ -1,10 +1,10 @@ <template> <Transition appear - :enter-active-class="$store.state.animation ? $style.transition_fade_enterActive : ''" - :leave-active-class="$store.state.animation ? $style.transition_fade_leaveActive : ''" - :enter-from-class="$store.state.animation ? $style.transition_fade_enterFrom : ''" - :leave-to-class="$store.state.animation ? $style.transition_fade_leaveTo : ''" + :enter-active-class="defaultStore.state.animation ? $style.transition_fade_enterActive : ''" + :leave-active-class="defaultStore.state.animation ? $style.transition_fade_leaveActive : ''" + :enter-from-class="defaultStore.state.animation ? $style.transition_fade_enterFrom : ''" + :leave-to-class="defaultStore.state.animation ? $style.transition_fade_leaveTo : ''" > <div ref="rootEl" :class="$style.root" :style="{ zIndex }" @contextmenu.prevent.stop="() => {}"> <MkMenu :items="items" :align="'left'" @close="$emit('closed')"/> @@ -18,6 +18,7 @@ import MkMenu from './MkMenu.vue'; import { MenuItem } from './types/menu.vue'; import contains from '@/scripts/contains'; import * as os from '@/os'; +import { defaultStore } from '@/store'; const props = defineProps<{ items: MenuItem[]; |