aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/components/LdCommandSearch.vue
diff options
context:
space:
mode:
authorZero~Informatique2020-02-28 18:50:12 +0100
committerZero~Informatique2020-02-28 18:50:12 +0100
commit7f0b8367a2092c5ffd69e9e46d055cbd605c0e3a (patch)
treec7621a6e00610e1d1d1b2564203908cd119ca99b /viewer/src/components/LdCommandSearch.vue
parentfe699fb16018aa22b121b48a85ef228f4b5c6bfd (diff)
downloadldgallery-7f0b8367a2092c5ffd69e9e46d055cbd605c0e3a.tar.gz
viewer: more minor architectural and performance improvement
Diffstat (limited to 'viewer/src/components/LdCommandSearch.vue')
-rw-r--r--viewer/src/components/LdCommandSearch.vue6
1 files changed, 1 insertions, 5 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
37export default class LdCommandSearch extends Vue { 37export 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}