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

View File

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