Show all available shortcuts everywhere but indicate which work on the current page
This commit is contained in:
parent
982d838dd4
commit
a0d63272a6
2 changed files with 47 additions and 38 deletions
|
@ -7,10 +7,6 @@
|
|||
<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">
|
||||
|
@ -19,7 +15,13 @@
|
|||
<span>e</span>
|
||||
</span>
|
||||
</p>
|
||||
<p v-if="$route.name === 'list.kanban'">
|
||||
<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.
|
||||
</div>
|
||||
</div>
|
||||
<p>
|
||||
<strong>Mark a task as done</strong>
|
||||
<span class="shortcuts">
|
||||
<span>ctrl</span>
|
||||
|
@ -27,8 +29,12 @@
|
|||
<span>click</span>
|
||||
</span>
|
||||
</p>
|
||||
<template
|
||||
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'">
|
||||
<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.
|
||||
</div>
|
||||
</div>
|
||||
<p>
|
||||
<strong>Assign this task to a user</strong>
|
||||
<span class="shortcuts">
|
||||
|
@ -59,7 +65,6 @@
|
|||
<span>r</span>
|
||||
</span>
|
||||
</p>
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -40,5 +40,9 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
.message-body {
|
||||
padding: .5rem .75rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue