Skip to content

Commit c6322b9

Browse files
committed
fix
1 parent 92cd8ec commit c6322b9

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

web_src/js/components/DashboardRepoList.vue

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,6 @@ export default defineComponent({
9191
}${this.privateFilter === 'private' ? '&is_private=true' : ''}${this.privateFilter === 'public' ? '&is_private=false' : ''
9292
}`;
9393
},
94-
isRepoEmpty() {
95-
return !this.isLoading && !this.reposTotalCount;
96-
},
97-
isOrgEmpty() {
98-
return !this.isLoading && !this.organizations.length;
99-
},
10094
repoTypeCount() {
10195
return this.counts[`${this.reposFilter}:${this.archivedFilter}:${this.privateFilter}`];
10296
},
@@ -360,7 +354,7 @@ export default defineComponent({
360354
</a>
361355
</h4>
362356
<div v-if="isLoading && !reposTotalCount" class="ui attached segment" :class="{'is-loading': isLoading}"/>
363-
<div v-if="isRepoEmpty" class="ui attached segment empty-placeholder">
357+
<div v-if="!isLoading && !reposTotalCount" class="ui attached segment empty-placeholder">
364358
<svg-icon name="octicon-git-branch" :size="24" class-name="empty-placeholder-icon"/>
365359
<p>{{ textNoRepo }}</p>
366360
</div>
@@ -478,7 +472,7 @@ export default defineComponent({
478472
</a>
479473
</h4>
480474
<div v-if="isLoading" class="ui attached segment" :class="{'is-loading': isLoading}"/>
481-
<div v-if="isOrgEmpty" class="ui attached segment empty-placeholder">
475+
<div v-if="!isLoading && !organizations.length" class="ui attached segment empty-placeholder">
482476
<svg-icon name="octicon-organization" :size="24" class-name="empty-placeholder-icon"/>
483477
<p>{{ textNoOrg }}</p>
484478
</div>

0 commit comments

Comments
 (0)