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