feat: implement modals with vue router 4 #816

Merged
konrad merged 62 commits from dpschen/frontend:feature/vue3-modals-with-router-4 into main 2022-02-05 16:49:04 +00:00
Showing only changes of commit 8233c8c953 - Show all commits

View File

@ -4,9 +4,9 @@
<template v-for="(s, i) in shortcuts" :key="i"> <template v-for="(s, i) in shortcuts" :key="i">
<h3>{{ $t(s.title) }}</h3> <h3>{{ $t(s.title) }}</h3>
<message class="mb-4"> <message class="mb-4" v-if="s.available">
{{ {{
s?.available($route) s.available($route)
? $t('keyboardShortcuts.currentPageOnly') ? $t('keyboardShortcuts.currentPageOnly')
: $t('keyboardShortcuts.allPages') : $t('keyboardShortcuts.allPages')
}} }}
@ -37,6 +37,8 @@ import Message from '@/components/misc/message.vue'
import {KEYBOARD_SHORTCUTS_ACTIVE} from '@/store/mutation-types' import {KEYBOARD_SHORTCUTS_ACTIVE} from '@/store/mutation-types'
import {KEYBOARD_SHORTCUTS as shortcuts} from './shortcuts' import {KEYBOARD_SHORTCUTS as shortcuts} from './shortcuts'
console.log('s', shortcuts)
function close() { function close() {
store.commit(KEYBOARD_SHORTCUTS_ACTIVE, false) store.commit(KEYBOARD_SHORTCUTS_ACTIVE, false)
} }