fix: keyboard shortcut text indicating what works where
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kolaente 2022-03-02 22:05:16 +01:00
parent f4b0e68322
commit cf5460d298
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 9 additions and 3 deletions

View File

@ -6,9 +6,13 @@
<message class="mb-4" v-if="s.available">
{{
s.available($route)
? $t('keyboardShortcuts.currentPageOnly')
: $t('keyboardShortcuts.allPages')
typeof s.available === 'undefined' ?
$t('keyboardShortcuts.allPages') :
(
s.available($route)
? $t('keyboardShortcuts.currentPageOnly')
: $t('keyboardShortcuts.somePagesOnly')
)
}}
</message>
@ -38,6 +42,7 @@ import {KEYBOARD_SHORTCUTS_ACTIVE} from '@/store/mutation-types'
import {KEYBOARD_SHORTCUTS as shortcuts} from './shortcuts'
const store = useStore()
function close() {
store.commit(KEYBOARD_SHORTCUTS_ACTIVE, false)
}

View File

@ -785,6 +785,7 @@
"general": "General",
"allPages": "These shortcuts work on all pages.",
"currentPageOnly": "These shortcuts work only on the current page.",
"somePagesOnly": "These shortcuts work only on some pages.",
"toggleMenu": "Toggle The Menu",
"quickSearch": "Open the search/quick action bar",
"then": "then",