fix: keyboard shortcut text indicating what works where
This commit is contained in:
parent
f4b0e68322
commit
cf5460d298
2 changed files with 9 additions and 3 deletions
|
@ -6,9 +6,13 @@
|
||||||
|
|
||||||
<message class="mb-4" v-if="s.available">
|
<message class="mb-4" v-if="s.available">
|
||||||
{{
|
{{
|
||||||
s.available($route)
|
typeof s.available === 'undefined' ?
|
||||||
? $t('keyboardShortcuts.currentPageOnly')
|
$t('keyboardShortcuts.allPages') :
|
||||||
: $t('keyboardShortcuts.allPages')
|
(
|
||||||
|
s.available($route)
|
||||||
|
? $t('keyboardShortcuts.currentPageOnly')
|
||||||
|
: $t('keyboardShortcuts.somePagesOnly')
|
||||||
|
)
|
||||||
}}
|
}}
|
||||||
</message>
|
</message>
|
||||||
|
|
||||||
|
@ -38,6 +42,7 @@ import {KEYBOARD_SHORTCUTS_ACTIVE} from '@/store/mutation-types'
|
||||||
import {KEYBOARD_SHORTCUTS as shortcuts} from './shortcuts'
|
import {KEYBOARD_SHORTCUTS as shortcuts} from './shortcuts'
|
||||||
|
|
||||||
const store = useStore()
|
const store = useStore()
|
||||||
|
|
||||||
function close() {
|
function close() {
|
||||||
store.commit(KEYBOARD_SHORTCUTS_ACTIVE, false)
|
store.commit(KEYBOARD_SHORTCUTS_ACTIVE, false)
|
||||||
}
|
}
|
||||||
|
|
|
@ -785,6 +785,7 @@
|
||||||
"general": "General",
|
"general": "General",
|
||||||
"allPages": "These shortcuts work on all pages.",
|
"allPages": "These shortcuts work on all pages.",
|
||||||
"currentPageOnly": "These shortcuts work only on the current page.",
|
"currentPageOnly": "These shortcuts work only on the current page.",
|
||||||
|
"somePagesOnly": "These shortcuts work only on some pages.",
|
||||||
"toggleMenu": "Toggle The Menu",
|
"toggleMenu": "Toggle The Menu",
|
||||||
"quickSearch": "Open the search/quick action bar",
|
"quickSearch": "Open the search/quick action bar",
|
||||||
"then": "then",
|
"then": "then",
|
||||||
|
|
Loading…
Reference in a new issue