You've already forked AstralRinth
forked from didirus/AstralRinth
fix: DI nonsense (#4174)
* fix: DI nonsense * fix: lint * fix: client try di issue * fix: injects outside of context * fix: use .catch * refactor: convert projects.vue to composition API. * fix: moderation checklist notif pos change watcher * fix: lint issues
This commit is contained in:
@@ -397,7 +397,8 @@ import { useModerationStore } from '~/store/moderation.ts'
|
||||
import KeybindsModal from './ChecklistKeybindsModal.vue'
|
||||
import ModpackPermissionsFlow from './ModpackPermissionsFlow.vue'
|
||||
|
||||
const { addNotification } = injectNotificationManager()
|
||||
const notifications = injectNotificationManager()
|
||||
const { addNotification } = notifications
|
||||
|
||||
const keybindsModal = ref<InstanceType<typeof KeybindsModal>>()
|
||||
|
||||
@@ -626,6 +627,11 @@ function handleKeybinds(event: KeyboardEvent) {
|
||||
onMounted(() => {
|
||||
window.addEventListener('keydown', handleKeybinds)
|
||||
initializeAllStages()
|
||||
notifications.setNotificationLocation('left')
|
||||
})
|
||||
|
||||
onUnmounted(() => {
|
||||
notifications.setNotificationLocation('right')
|
||||
})
|
||||
|
||||
function initializeAllStages() {
|
||||
|
||||
Reference in New Issue
Block a user