|
|
@@ -250,6 +250,7 @@
|
|
|
<q-space />
|
|
|
|
|
|
<q-rating
|
|
|
+ v-if="item.client_reviewed || canReview(item)"
|
|
|
class="q-mr-sm"
|
|
|
color="amber"
|
|
|
icon="mdi-star-outline"
|
|
|
@@ -274,7 +275,7 @@
|
|
|
/>
|
|
|
|
|
|
<q-btn
|
|
|
- v-else
|
|
|
+ v-else-if="canReview(item)"
|
|
|
class="btn-rate"
|
|
|
color="secondary"
|
|
|
no-caps
|
|
|
@@ -427,7 +428,11 @@ const openDetailsDialog = (schedule) => {
|
|
|
});
|
|
|
};
|
|
|
|
|
|
+const canReview = (item) => item.status !== "cancelled";
|
|
|
+
|
|
|
const openRatingDialog = (schedule) => {
|
|
|
+ if (!canReview(schedule)) return;
|
|
|
+
|
|
|
$q.dialog({
|
|
|
component: ScheduleRatingDialog,
|
|
|
componentProps: { schedule },
|