fix: скрыл отзывы от студентов
🚀 Create and publish a Docker image / Detect changes in backend and frontend (push) Successful in 11s
🚀 Create and publish a Docker image / Build & publish backend image (push) Successful in 1m17s
🚀 Create and publish a Docker image / Build & publish frontend image (push) Successful in 29s
🚀 Create and publish a Docker image / Update stack on Portainer (push) Successful in 9s

This commit is contained in:
2026-05-13 19:16:48 +03:00
parent 7761238719
commit f6aaf0b923
7 changed files with 61 additions and 7 deletions
+5 -1
View File
@@ -6,6 +6,7 @@ import AppIcon from '@/components/ui/AppIcon.vue'
const props = defineProps<{
lecture: Lecture
registered?: boolean
showRating?: boolean
}>()
const emit = defineEmits<{ register: [id: string] }>()
const router = useRouter()
@@ -78,7 +79,7 @@ function goDetail() {
</div>
<div class="card-footer">
<div class="rating">
<div v-if="showRating !== false" class="rating">
<span class="stars">{{ starsHtml(lecture.rating) }}</span>
<span class="rating-value">{{ lecture.rating }}</span>
<span class="text-secondary text-sm">({{ lecture.reviewCount }})</span>
@@ -178,6 +179,9 @@ function goDetail() {
justify-content: space-between;
margin-top: 4px;
}
.card-footer button {
margin-left: auto;
}
.rating {
display: flex;
align-items: center;
@@ -205,6 +205,7 @@ async function registerLecture(id: string) {
:key="l.id"
:lecture="l"
:registered="lecturesStore.registeredIds.includes(l.id)"
:show-rating="false"
@register="registerLecture"
/>
</div>