fix: lint

This commit is contained in:
kolaente 2021-11-03 20:43:04 +01:00
parent 3ce3a3af65
commit e7114d24e9
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 6 additions and 5 deletions

View File

@ -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>

View File

@ -1,7 +1,7 @@
export const KEYBOARD_SHORTCUTS = [
{
title: 'keyboardShortcuts.general',
available: (route) => null,
available: () => null,
shortcuts: [
{
title: 'keyboardShortcuts.toggleMenu',