2020-07-25 16:52:04 +02:00
|
|
|
<template>
|
|
|
|
<div class="modal-mask keyboard-shortcuts-modal">
|
2020-09-05 22:35:52 +02:00
|
|
|
<div @click.self="close()" class="modal-container">
|
2020-07-25 16:52:04 +02:00
|
|
|
<div class="modal-content">
|
2021-01-17 18:57:57 +01:00
|
|
|
<card class="has-background-white has-no-shadow" title="Available Keyboard Shortcuts">
|
|
|
|
<p>
|
|
|
|
<strong>Toggle The Menu</strong>
|
|
|
|
<shortcut :keys="['ctrl', 'e']"/>
|
|
|
|
</p>
|
|
|
|
<h3>Kanban</h3>
|
|
|
|
<div class="message is-primary" v-if="$route.name === 'list.kanban'">
|
|
|
|
<div class="message-body">
|
|
|
|
These shortcuts work on the current page.
|
2020-11-11 22:02:57 +01:00
|
|
|
</div>
|
2021-01-17 18:57:57 +01:00
|
|
|
</div>
|
|
|
|
<p>
|
|
|
|
<strong>Mark a task as done</strong>
|
|
|
|
<shortcut :keys="['ctrl', 'click']"/>
|
|
|
|
</p>
|
|
|
|
<h3>Task Page</h3>
|
|
|
|
<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">
|
|
|
|
These shortcuts work on the current page.
|
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>
|
|
|
|
<strong>Assign this task to a user</strong>
|
|
|
|
<shortcut :keys="['a']"/>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<strong>Add labels to this task</strong>
|
|
|
|
<shortcut :keys="['l']"/>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<strong>Change the due date of this task</strong>
|
|
|
|
<shortcut :keys="['d']"/>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<strong>Add an attachment to this task</strong>
|
|
|
|
<shortcut :keys="['f']"/>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<strong>Modify related tasks of this task</strong>
|
|
|
|
<shortcut :keys="['r']"/>
|
|
|
|
</p>
|
|
|
|
</card>
|
2020-07-25 16:52:04 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2020-11-01 18:36:00 +01:00
|
|
|
import {KEYBOARD_SHORTCUTS_ACTIVE} from '@/store/mutation-types'
|
2021-01-17 18:57:57 +01:00
|
|
|
import Shortcut from '@/components/misc/shortcut'
|
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
|
|
|
},
|
|
|
|
}
|
2020-07-25 16:52:04 +02:00
|
|
|
</script>
|