forked from vikunja/frontend
fix: lint
This commit is contained in:
parent
3ce3a3af65
commit
e7114d24e9
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<modal @close="close()">
|
||||
<card class="has-background-white has-no-shadow" :title="$t('keyboardShortcuts.title')">
|
||||
<template v-for="s in shortcuts">
|
||||
<template v-for="(s, i) in shortcuts" :key="i">
|
||||
<h3>{{ $t(s.title) }}</h3>
|
||||
|
||||
<div class="message is-primary" v-if="s.available($route) === null">
|
||||
|
@ -15,10 +15,11 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<p v-for="sc in s.shortcuts">
|
||||
<p v-for="(sc, si) in s.shortcuts" :key="si">
|
||||
<strong>{{ $t(sc.title) }}</strong>
|
||||
<shortcut :keys="sc.keys"
|
||||
:combination="typeof sc.combination !== 'undefined' ? $t(`keyboardShortcuts.${sc.combination}`) : null"/>
|
||||
<shortcut
|
||||
:keys="sc.keys"
|
||||
:combination="typeof sc.combination !== 'undefined' ? $t(`keyboardShortcuts.${sc.combination}`) : null"/>
|
||||
</p>
|
||||
</template>
|
||||
</card>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
export const KEYBOARD_SHORTCUTS = [
|
||||
{
|
||||
title: 'keyboardShortcuts.general',
|
||||
available: (route) => null,
|
||||
available: () => null,
|
||||
shortcuts: [
|
||||
{
|
||||
title: 'keyboardShortcuts.toggleMenu',
|
||||
|
|
Loading…
Reference in New Issue
Block a user