Skip to content

Commit

Permalink
disable search
Browse files Browse the repository at this point in the history
  • Loading branch information
JingwenBai committed May 29, 2022
1 parent 1eabb81 commit 2938d38
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions src/components/Registry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,14 @@
</div>
</Card>
</div>
<div v-if="!dataFound" class="no-data-container">
No Data...
<div v-if="!firstSearchState" class="no-data-container">
Input the keyword for search...
</div>
<div v-else>
<div v-if="!dataFound" class="no-data-container">
No matched Data
</div>
</div>


</div>
<div class="page-wrapper">
<Page :total="total" :current="page" :page-size="pageSize" size="small" show-elevator show-sizer @on-change="pageChange" @on-page-size-change="pageSizeChange"/>
Expand All @@ -129,7 +132,7 @@ export default {
page:1,
pageSize:30,
cardList:[],
loading:true,
loading:false,
dataFound:false,
filter:'All',
resultsTableCol:[
Expand Down Expand Up @@ -252,7 +255,8 @@ export default {
facetValueArray:[],
facetValue:'',
facetName:'',
tagsArray:[]
tagsArray:[],
firstSearchState:false
}
},
beforeRouteUpdate:function (to, from, next) {
Expand Down Expand Up @@ -310,6 +314,7 @@ export default {
},
submitSearch(){
console.debug('submitSearch')
this.firstSearchState = true
this.$router.push({name: 'Registry', query: this.query});
},
Expand Down Expand Up @@ -642,7 +647,7 @@ export default {
mounted(){
console.debug('mounted')
this.updateCondition();
this.search();
// this.search();
this.getFacets();
}
Expand Down

0 comments on commit 2938d38

Please sign in to comment.