From f5c48c9679ef16f2d2dfb88d7cdcea929463f2ed Mon Sep 17 00:00:00 2001 From: 1138-4EB <1138-4EB@users.noreply.github.com> Date: Sun, 29 Jul 2018 20:07:49 +0100 Subject: [PATCH] Use v-for to create boxes in Search.vue (#21) `:key="k"` is required because of vuejs/vetur#261. --- src/components/Search.vue | 46 ++++++++++++++------------------------- 1 file changed, 16 insertions(+), 30 deletions(-) diff --git a/src/components/Search.vue b/src/components/Search.vue index 9a18fdef..3312ba3f 100644 --- a/src/components/Search.vue +++ b/src/components/Search.vue @@ -25,35 +25,13 @@
{{ $t('search.images') }}
-{{ $t('search.music') }}
-{{ $t('search.video') }}
-{{ $t('search.pdf') }}
+ @click="init('type:'+k)" + :aria-label="$t('search.'+v.label)"> + {{v.icon}} +{{ $t('search.'+v.label) }}