Skip to content

Commit

Permalink
Merge pull request #145 from traPtitech/feat/no_project_no_group_no_c…
Browse files Browse the repository at this point in the history
…ontest

参加プロジェクトとかがないときの表示
  • Loading branch information
mehm8128 authored Jun 11, 2024
2 parents c4668fa + 192eaa2 commit e9cd8f3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/components/User/ContestsContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ defineProps<Props>()
<template>
<section :class="$style.section">
<h2 :class="$style.title">実績</h2>
<ul :class="$style.contests">
<ul v-if="contests.length > 0" :class="$style.contests">
<li v-for="contest in contests" :key="contest.id" :class="$style.contest">
<router-link :to="`/contests/${contest.id}`" :class="$style.link">
<div>{{ contest.name }}</div>
Expand All @@ -22,6 +22,7 @@ defineProps<Props>()
</router-link>
</li>
</ul>
<p v-else>まだ実績は登録されていません</p>
</section>
</template>

Expand Down
3 changes: 2 additions & 1 deletion src/components/User/GroupsContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ defineProps<Props>()
<template>
<section :class="$style.section">
<h2 :class="$style.title">班</h2>
<group-list :groups="groups" />
<group-list v-if="groups.length > 0" :groups="groups" />
<p v-else>現在所属している班はありません</p>
</section>
</template>

Expand Down
3 changes: 2 additions & 1 deletion src/components/User/ProjectsContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ defineProps<Props>()
<template>
<section :class="$style.section">
<h2 :class="$style.title">参加プロジェクト</h2>
<project-list :projects="projects" />
<project-list v-if="projects.length > 0" :projects="projects" />
<p v-else>これまでに参加したプロジェクトはありません</p>
</section>
</template>

Expand Down

0 comments on commit e9cd8f3

Please sign in to comment.