|
@@ -116,15 +116,22 @@
|
|
|
<div class="col-1 q-my-auto">
|
|
<div class="col-1 q-my-auto">
|
|
|
<q-icon
|
|
<q-icon
|
|
|
class="flex-shrink-0 q-mt-xxs"
|
|
class="flex-shrink-0 q-mt-xxs"
|
|
|
- color="primary"
|
|
|
|
|
- name="mdi-map-marker-outline"
|
|
|
|
|
|
|
+ :color="isConfirmed ? 'primary' : 'grey-6'"
|
|
|
|
|
+ :name="isConfirmed ? 'mdi-map-marker-outline' : 'mdi-map-marker-off-outline'"
|
|
|
size="20px"
|
|
size="20px"
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col">
|
|
<div class="col">
|
|
|
- <span class="font12 text-center text-grey-8">
|
|
|
|
|
- {{ formattedAddress || "N/A" }}
|
|
|
|
|
|
|
+ <span
|
|
|
|
|
+ class="font12 text-center"
|
|
|
|
|
+ :class="isConfirmed ? 'text-grey-8' : 'text-grey-6'"
|
|
|
|
|
+ >
|
|
|
|
|
+ {{
|
|
|
|
|
+ isConfirmed
|
|
|
|
|
+ ? formattedAddress || "N/A"
|
|
|
|
|
+ : $t("provider.dashboard.next_schedules.address_hidden")
|
|
|
|
|
+ }}
|
|
|
</span>
|
|
</span>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -140,6 +147,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<q-btn
|
|
<q-btn
|
|
|
|
|
+ v-if="isConfirmed"
|
|
|
class="q-mt-xs"
|
|
class="q-mt-xs"
|
|
|
color="primary"
|
|
color="primary"
|
|
|
dense
|
|
dense
|
|
@@ -229,6 +237,10 @@ const dayMonthLabel = computed(() => {
|
|
|
|
|
|
|
|
const formattedAddress = computed(() => formatAddress(props.schedule.address));
|
|
const formattedAddress = computed(() => formatAddress(props.schedule.address));
|
|
|
|
|
|
|
|
|
|
+const isConfirmed = computed(() =>
|
|
|
|
|
+ ["accepted", "paid", "started", "finished"].includes(props.schedule.status),
|
|
|
|
|
+);
|
|
|
|
|
+
|
|
|
const periodLabel = computed(() => {
|
|
const periodLabel = computed(() => {
|
|
|
const period = labelsPeriodTypes.find(
|
|
const period = labelsPeriodTypes.find(
|
|
|
(label) => label.value == props.schedule.period_type,
|
|
(label) => label.value == props.schedule.period_type,
|