Skip to content

Commit 86a07f8

Browse files
committed
Remove loader and reset counts when changing filter
1 parent 5544b39 commit 86a07f8

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

public/js/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1705,7 +1705,7 @@ function initVueComponents(){
17051705
return this.suburl + '/api/v1/repos/search?uid=' + this.uid + '&q=' + this.searchQuery + '&limit=' + this.searchLimit + '&mode=' + this.repoTypes[this.reposFilter].searchMode + (this.reposFilter !== 'all' ? '&exclusive=1' : '');
17061706
},
17071707
repoTypeCount: function() {
1708-
return this.isLoading ? 0 : this.repoTypes[this.reposFilter].count;
1708+
return this.repoTypes[this.reposFilter].count;
17091709
}
17101710
},
17111711

@@ -1725,6 +1725,8 @@ function initVueComponents(){
17251725

17261726
changeReposFilter: function(filter) {
17271727
this.reposFilter = filter;
1728+
this.repos = [];
1729+
this.repoTypes[filter].count = 0;
17281730
this.searchRepos(filter);
17291731
},
17301732

templates/user/dashboard/dashboard.tmpl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
</a>
7070
</div>
7171
</div>
72-
<div v-if="!isLoading" class="ui attached table segment">
72+
<div class="ui attached table segment">
7373
<ul class="repo-owner-name-list">
7474
<li v-for="repo in repos" :class="{'private': repo.private}" v-show="showRepo(repo, reposFilter)">
7575
<a :href="suburl + '/' + repo.full_name">
@@ -85,9 +85,6 @@
8585
</li>
8686
</ul>
8787
</div>
88-
<div v-else class="ui attached segment">
89-
<div class="ui active centered inline small loader"></div>
90-
</div>
9188
</div>
9289
<div v-if="!isOrganization" v-show="tab === 'organizations'" class="ui tab active list">
9390
<h4 class="ui top attached header">

0 commit comments

Comments
 (0)