diff options
author | KN4CK3R <KN4CK3R@users.noreply.github.com> | 2021-04-13 04:09:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-12 22:09:46 -0400 |
commit | bf3e584de25b43ddc8fd12d1388fbd9b984f883b (patch) | |
tree | 7faa914aee6fdb420fa85b1a797821d010641e71 | |
parent | 27f9bda769401626f78dc3ee1c4ebedab6550ca8 (diff) | |
download | gitea-bf3e584de25b43ddc8fd12d1388fbd9b984f883b.tar.gz gitea-bf3e584de25b43ddc8fd12d1388fbd9b984f883b.zip |
Fix repository search (#15428)
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
-rw-r--r-- | templates/user/dashboard/repolist.tmpl | 2 | ||||
-rw-r--r-- | web_src/js/index.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/user/dashboard/repolist.tmpl b/templates/user/dashboard/repolist.tmpl index 1f619ea833..9dfda9d84e 100644 --- a/templates/user/dashboard/repolist.tmpl +++ b/templates/user/dashboard/repolist.tmpl @@ -38,7 +38,7 @@ </h4> <div class="ui attached segment repos-search"> <div class="ui fluid right action left icon input" :class="{loading: isLoading}"> - <input @input="searchRepos(reposFilter)" v-model="searchQuery" ref="search" placeholder="{{.i18n.Tr "home.search_repos"}}"> + <input @input="changeReposFilter(reposFilter)" v-model="searchQuery" ref="search" placeholder="{{.i18n.Tr "home.search_repos"}}"> <i class="icon df ac jc">{{svg "octicon-search" 16}}</i> <div class="ui dropdown icon button" title="{{.i18n.Tr "home.filter"}}"> <i class="icon df ac jc m-0">{{svg "octicon-filter" 16}}</i> diff --git a/web_src/js/index.js b/web_src/js/index.js index f7a767d6a2..1716df9e7f 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -3157,7 +3157,7 @@ function initVueComponents() { }, mounted() { - this.searchRepos(this.reposFilter); + this.changeReposFilter(this.reposFilter); $(this.$el).find('.poping.up').popup(); $(this.$el).find('.dropdown').dropdown(); this.setCheckboxes(); |