|
@@ -353,7 +353,8 @@
|
|
|
size="sm"
|
|
size="sm"
|
|
|
style="background: #a63df7; color: white"
|
|
style="background: #a63df7; color: white"
|
|
|
unelevated
|
|
unelevated
|
|
|
- :label="$t('profile.favorites.schedule_btn')"
|
|
|
|
|
|
|
+ :label="$t('dashboard_client.favorites.view_schedule')"
|
|
|
|
|
+ @click="goToScheduling(item)"
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -386,6 +387,7 @@ import { userStore } from "src/stores/user";
|
|
|
|
|
|
|
|
import ProfileFavoriteCodeDialog from "./ProfileFavoriteCodeDialog.vue";
|
|
import ProfileFavoriteCodeDialog from "./ProfileFavoriteCodeDialog.vue";
|
|
|
import ProfileFavoriteRemoveDialog from "./ProfileFavoriteRemoveDialog.vue";
|
|
import ProfileFavoriteRemoveDialog from "./ProfileFavoriteRemoveDialog.vue";
|
|
|
|
|
+import SchedulingDialog from "src/pages/search/components/SchedulingDialog.vue";
|
|
|
|
|
|
|
|
defineEmits([...useDialogPluginComponent.emits]);
|
|
defineEmits([...useDialogPluginComponent.emits]);
|
|
|
|
|
|
|
@@ -403,7 +405,7 @@ const CLIENT_APP_STORE_URL =
|
|
|
const favorites = ref([]);
|
|
const favorites = ref([]);
|
|
|
const highlightIndex = ref(0);
|
|
const highlightIndex = ref(0);
|
|
|
const loading = ref(false);
|
|
const loading = ref(false);
|
|
|
-const selectedHours = ref("8h");
|
|
|
|
|
|
|
+const selectedHours = ref("6h");
|
|
|
|
|
|
|
|
const highlightedFavorite = computed(
|
|
const highlightedFavorite = computed(
|
|
|
() => favorites.value[highlightIndex.value] ?? null,
|
|
() => favorites.value[highlightIndex.value] ?? null,
|
|
@@ -533,6 +535,14 @@ const loadFavorites = async () => {
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+const goToScheduling = (provider) => {
|
|
|
|
|
+ $q.dialog({
|
|
|
|
|
+ component: SchedulingDialog,
|
|
|
|
|
+ componentProps: { provider },
|
|
|
|
|
+ });
|
|
|
|
|
+ dialogRef.value.hide();
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
onMounted(loadFavorites);
|
|
onMounted(loadFavorites);
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|