This commit is contained in:
2026-09-18 02:57:53 +07:00
parent 29925a36c9
commit 267a189ebc
47 changed files with 56 additions and 44 deletions
+7 -1
View File
@@ -46,7 +46,13 @@ getScenarios()
<p class="scenario-description">{{ scenario.description }}</p>
<div class="scenario-rating">
<n-rate :value="scenario.averageRating" readonly allow-half size="small" />
<n-rate
v-if="scenario.reviewsCount"
:value="scenario.averageRating"
readonly
allow-half
size="small"
/>
<span v-if="scenario.reviewsCount">{{ scenario.averageRating?.toFixed(1) }} · {{ scenario.reviewsCount }}</span>
<span v-else>Пока нет оценок</span>
</div>
+7 -1
View File
@@ -51,7 +51,13 @@ getScenario(Number(scenarioId))
<div class="scenario-details">
<p class="scenario-description">{{ scenario.description }}</p>
<div class="scenario-rating">
<n-rate :value="scenario.averageRating" readonly allow-half size="small" />
<n-rate
v-if="scenario.reviewsCount"
:value="scenario.averageRating"
readonly
allow-half
size="small"
/>
<span v-if="scenario.reviewsCount">{{ scenario.averageRating?.toFixed(1) }} · {{ scenario.reviewsCount }} отзывов</span>
<span v-else>Пока нет оценок</span>
</div>