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.types') }}
-
insert_photo
-
{{ $t('search.images') }}
-
-
-
-
volume_up
-
{{ $t('search.music') }}
-
-
-
-
movie
-
{{ $t('search.video') }}
-
-
-
-
picture_as_pdf
-
{{ $t('search.pdf') }}
+ @click="init('type:'+k)"
+ :aria-label="$t('search.'+v.label)">
+
{{v.icon}}
+
{{ $t('search.'+v.label) }}
@@ -61,7 +39,7 @@
- -
+
-
folder
insert_drive_file
@@ -84,6 +62,13 @@ import { mapState } from 'vuex'
import url from '@/utils/url'
import * as api from '@/utils/api'
+var boxes = {
+ image: { label: 'images', icon: 'insert_photo' },
+ audio: { label: 'music', icon: 'volume_up' },
+ video: { label: 'video', icon: 'movie' },
+ pdf: { label: 'pdf', icon: 'picture_as_pdf' }
+}
+
export default {
name: 'search',
data: function () {
@@ -95,7 +80,8 @@ export default {
search: [],
commands: [],
reload: false,
- resultsCount: 50
+ resultsCount: 50,
+ boxes: boxes
}
},
watch: {