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">
|
|
|
|
<div class="card has-background-white has-no-shadow">
|
|
|
|
<header class="card-header">
|
|
|
|
<p class="card-header-title">Available Keyboard Shortcuts</p>
|
|
|
|
</header>
|
|
|
|
<div class="card-content content">
|
|
|
|
<p class="info">
|
|
|
|
The available keyboard shortcuts depend on the current page. Not all shortcuts are available
|
|
|
|
everywhere.
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<strong>Toggle The Menu</strong>
|
|
|
|
<span class="shortcuts">
|
|
|
|
<span>ctrl</span>
|
|
|
|
<i>+</i>
|
|
|
|
<span>e</span>
|
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
<p v-if="$route.name === 'list.kanban'">
|
|
|
|
<strong>Mark a task as done</strong>
|
|
|
|
<span class="shortcuts">
|
|
|
|
<span>ctrl</span>
|
|
|
|
<i>+</i>
|
|
|
|
<span>click</span>
|
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
<template
|
2020-09-05 22:35:52 +02:00
|
|
|
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'">
|
2020-07-25 16:52:04 +02:00
|
|
|
<p>
|
|
|
|
<strong>Assign this task to a user</strong>
|
|
|
|
<span class="shortcuts">
|
|
|
|
<span>ctrl</span>
|
|
|
|
<i>+</i>
|
|
|
|
<span>shift</span>
|
|
|
|
<i>+</i>
|
|
|
|
<span>a</span>
|
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<strong>Add labels to this task</strong>
|
|
|
|
<span class="shortcuts">
|
|
|
|
<span>ctrl</span>
|
|
|
|
<i>+</i>
|
|
|
|
<span>shift</span>
|
|
|
|
<i>+</i>
|
|
|
|
<span>l</span>
|
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<strong>Change the due date of this task</strong>
|
|
|
|
<span class="shortcuts">
|
|
|
|
<span>ctrl</span>
|
|
|
|
<i>+</i>
|
|
|
|
<span>shift</span>
|
|
|
|
<i>+</i>
|
|
|
|
<span>d</span>
|
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<strong>Add an attachment to this task</strong>
|
|
|
|
<span class="shortcuts">
|
|
|
|
<span>ctrl</span>
|
|
|
|
<i>+</i>
|
|
|
|
<span>shift</span>
|
|
|
|
<i>+</i>
|
|
|
|
<span>f</span>
|
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<strong>Modify related tasks of this task</strong>
|
|
|
|
<span class="shortcuts">
|
|
|
|
<span>ctrl</span>
|
|
|
|
<i>+</i>
|
|
|
|
<span>shift</span>
|
|
|
|
<i>+</i>
|
|
|
|
<span>r</span>
|
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
</template>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2020-09-05 22:35:52 +02:00
|
|
|
export default {
|
|
|
|
name: 'keyboard-shortcuts',
|
|
|
|
methods: {
|
|
|
|
close() {
|
|
|
|
this.$emit('close')
|
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>
|