diff options
author | Zero~Informatique | 2020-02-28 18:50:12 +0100 |
---|---|---|
committer | Zero~Informatique | 2020-02-28 18:50:12 +0100 |
commit | 7f0b8367a2092c5ffd69e9e46d055cbd605c0e3a (patch) | |
tree | c7621a6e00610e1d1d1b2564203908cd119ca99b /viewer/src/components | |
parent | fe699fb16018aa22b121b48a85ef228f4b5c6bfd (diff) | |
download | ldgallery-7f0b8367a2092c5ffd69e9e46d055cbd605c0e3a.tar.gz |
viewer: more minor architectural and performance improvement
Diffstat (limited to 'viewer/src/components')
-rw-r--r-- | viewer/src/components/LdCommandSearch.vue | 6 | ||||
-rw-r--r-- | viewer/src/components/LdGallery.vue | 8 |
2 files changed, 4 insertions, 10 deletions
diff --git a/viewer/src/components/LdCommandSearch.vue b/viewer/src/components/LdCommandSearch.vue index bd18060..3d95eb0 100644 --- a/viewer/src/components/LdCommandSearch.vue +++ b/viewer/src/components/LdCommandSearch.vue | |||
@@ -23,7 +23,7 @@ | |||
23 | <fa-icon icon="eraser" /> | 23 | <fa-icon icon="eraser" /> |
24 | <span>{{$t('command.search.clear')}}</span> | 24 | <span>{{$t('command.search.clear')}}</span> |
25 | </b-button> | 25 | </b-button> |
26 | <b-button expanded :loading="loading" @click="search"> | 26 | <b-button expanded @click="search"> |
27 | <fa-icon icon="search" /> | 27 | <fa-icon icon="search" /> |
28 | <span>{{$t('command.search.search')}}</span> | 28 | <span>{{$t('command.search.search')}}</span> |
29 | </b-button> | 29 | </b-button> |
@@ -35,8 +35,6 @@ import { Component, Vue, Emit } from "vue-property-decorator"; | |||
35 | 35 | ||
36 | @Component | 36 | @Component |
37 | export default class LdCommandSearch extends Vue { | 37 | export default class LdCommandSearch extends Vue { |
38 | loading: boolean = false; | ||
39 | |||
40 | @Emit() | 38 | @Emit() |
41 | clear(e: HTMLButtonElement) { | 39 | clear(e: HTMLButtonElement) { |
42 | return e; | 40 | return e; |
@@ -44,8 +42,6 @@ export default class LdCommandSearch extends Vue { | |||
44 | 42 | ||
45 | @Emit() | 43 | @Emit() |
46 | search(e: HTMLButtonElement) { | 44 | search(e: HTMLButtonElement) { |
47 | this.loading = true; | ||
48 | this.$nextTick(() => (this.loading = false)); | ||
49 | return e; | 45 | return e; |
50 | } | 46 | } |
51 | } | 47 | } |
diff --git a/viewer/src/components/LdGallery.vue b/viewer/src/components/LdGallery.vue index 16e9f7c..cd4bc28 100644 --- a/viewer/src/components/LdGallery.vue +++ b/viewer/src/components/LdGallery.vue | |||
@@ -19,11 +19,9 @@ | |||
19 | 19 | ||
20 | <template> | 20 | <template> |
21 | <div class="thumbnail-tiles"> | 21 | <div class="thumbnail-tiles"> |
22 | <div v-for="item in items" :key="item.path"> | 22 | <router-link v-for="item in items" :key="item.path" :to="item.path"> |
23 | <router-link :to="item.path"> | 23 | <ld-thumbnail :item="item" /> |
24 | <ld-thumbnail :item="item" /> | 24 | </router-link> |
25 | </router-link> | ||
26 | </div> | ||
27 | <div v-if="hasNoResults()" class="noresult">{{noresult}}</div> | 25 | <div v-if="hasNoResults()" class="noresult">{{noresult}}</div> |
28 | </div> | 26 | </div> |
29 | </template> | 27 | </template> |