2020-07-25 16:52:04 +02:00
|
|
|
<template>
|
2021-09-24 20:08:48 +02:00
|
|
|
<modal @close="close()">
|
2021-06-24 01:24:57 +02:00
|
|
|
<card class="has-background-white has-no-shadow" :title="$t('keyboardShortcuts.title')">
|
2021-05-30 21:14:15 +02:00
|
|
|
<div class="message is-primary">
|
|
|
|
<div class="message-body">
|
2021-06-24 01:24:57 +02:00
|
|
|
{{ $t('keyboardShortcuts.allPages') }}
|
2021-05-30 21:14:15 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-01-17 18:57:57 +01:00
|
|
|
<p>
|
2021-06-24 01:24:57 +02:00
|
|
|
<strong>{{ $t('keyboardShortcuts.toggleMenu') }}</strong>
|
2021-01-17 18:57:57 +01:00
|
|
|
<shortcut :keys="['ctrl', 'e']"/>
|
|
|
|
</p>
|
2021-05-30 21:14:15 +02:00
|
|
|
<p>
|
2021-06-24 01:24:57 +02:00
|
|
|
<strong>{{ $t('keyboardShortcuts.quickSearch') }}</strong>
|
2021-05-30 21:14:15 +02:00
|
|
|
<shortcut :keys="['ctrl', 'k']"/>
|
|
|
|
</p>
|
2021-06-24 01:24:57 +02:00
|
|
|
<h3>{{ $t('list.kanban.title') }}</h3>
|
2021-01-17 18:57:57 +01:00
|
|
|
<div class="message is-primary" v-if="$route.name === 'list.kanban'">
|
|
|
|
<div class="message-body">
|
2021-06-24 01:24:57 +02:00
|
|
|
{{ $t('keyboardShortcuts.currentPageOnly') }}
|
2020-11-11 22:02:57 +01:00
|
|
|
</div>
|
2021-01-17 18:57:57 +01:00
|
|
|
</div>
|
|
|
|
<p>
|
2021-06-24 01:24:57 +02:00
|
|
|
<strong>{{ $t('keyboardShortcuts.task.done') }}</strong>
|
2021-01-17 18:57:57 +01:00
|
|
|
<shortcut :keys="['ctrl', 'click']"/>
|
|
|
|
</p>
|
2021-06-24 01:24:57 +02:00
|
|
|
<h3>{{ $t('keyboardShortcuts.task.title') }}</h3>
|
2021-01-17 18:57:57 +01:00
|
|
|
<div
|
|
|
|
class="message is-primary"
|
|
|
|
v-if="$route.name === 'task.detail' || $route.name === 'task.list.detail' || $route.name === 'task.gantt.detail' || $route.name === 'task.kanban.detail' || $route.name === 'task.detail'">
|
|
|
|
<div class="message-body">
|
2021-06-24 01:24:57 +02:00
|
|
|
{{ $t('keyboardShortcuts.currentPageOnly') }}
|
2020-11-11 22:02:57 +01:00
|
|
|
</div>
|
2020-07-25 16:52:04 +02:00
|
|
|
</div>
|
2021-01-17 18:57:57 +01:00
|
|
|
<p>
|
2021-06-24 01:24:57 +02:00
|
|
|
<strong>{{ $t('keyboardShortcuts.task.assign') }}</strong>
|
2021-01-17 18:57:57 +01:00
|
|
|
<shortcut :keys="['a']"/>
|
|
|
|
</p>
|
|
|
|
<p>
|
2021-06-24 01:24:57 +02:00
|
|
|
<strong>{{ $t('keyboardShortcuts.task.labels') }}</strong>
|
2021-01-17 18:57:57 +01:00
|
|
|
<shortcut :keys="['l']"/>
|
|
|
|
</p>
|
|
|
|
<p>
|
2021-06-24 01:24:57 +02:00
|
|
|
<strong>{{ $t('keyboardShortcuts.task.dueDate') }}</strong>
|
2021-01-17 18:57:57 +01:00
|
|
|
<shortcut :keys="['d']"/>
|
|
|
|
</p>
|
|
|
|
<p>
|
2021-06-24 01:24:57 +02:00
|
|
|
<strong>{{ $t('keyboardShortcuts.task.attachment') }}</strong>
|
2021-01-17 18:57:57 +01:00
|
|
|
<shortcut :keys="['f']"/>
|
|
|
|
</p>
|
|
|
|
<p>
|
2021-06-24 01:24:57 +02:00
|
|
|
<strong>{{ $t('keyboardShortcuts.task.related') }}</strong>
|
2021-01-17 18:57:57 +01:00
|
|
|
<shortcut :keys="['r']"/>
|
|
|
|
</p>
|
|
|
|
</card>
|
2021-09-24 20:08:48 +02:00
|
|
|
</modal>
|
2020-07-25 16:52:04 +02:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2020-11-01 18:36:00 +01:00
|
|
|
import {KEYBOARD_SHORTCUTS_ACTIVE} from '@/store/mutation-types'
|
2021-07-25 15:27:15 +02:00
|
|
|
import Shortcut from '@/components/misc/shortcut.vue'
|
2020-11-01 18:36:00 +01:00
|
|
|
|
2020-09-05 22:35:52 +02:00
|
|
|
export default {
|
|
|
|
name: 'keyboard-shortcuts',
|
2021-01-17 18:57:57 +01:00
|
|
|
components: {Shortcut},
|
2020-09-05 22:35:52 +02:00
|
|
|
methods: {
|
|
|
|
close() {
|
2020-11-01 18:36:00 +01:00
|
|
|
this.$store.commit(KEYBOARD_SHORTCUTS_ACTIVE, false)
|
2020-07-25 16:52:04 +02:00
|
|
|
},
|
2020-09-05 22:35:52 +02:00
|
|
|
},
|
|
|
|
}
|
2021-09-24 20:08:48 +02:00
|
|
|
</script>
|