|
|
@@ -37,6 +37,7 @@
|
|
|
class="full-width q-py-sm"
|
|
|
padding="10px 16px"
|
|
|
:label="$t('profile.favorites.search_btn')"
|
|
|
+ @click="goToSearch"
|
|
|
/>
|
|
|
</div>
|
|
|
|
|
|
@@ -166,6 +167,7 @@ import { ref, computed, onMounted } from 'vue';
|
|
|
import { useDialogPluginComponent, useQuasar } from 'quasar';
|
|
|
import { useI18n } from 'vue-i18n';
|
|
|
import { userStore } from 'src/stores/user';
|
|
|
+import { useRouter } from 'vue-router';
|
|
|
import { getClientFavoriteProviders, deleteClientFavoriteProvider } from 'src/api/clientFavoriteProvider';
|
|
|
import ProfileFavoriteRemoveDialog from './ProfileFavoriteRemoveDialog.vue';
|
|
|
import diarinho from 'src/assets/diarinho_perfil_cliente_favoritos.svg';
|
|
|
@@ -177,6 +179,7 @@ const $q = useQuasar();
|
|
|
const { t } = useI18n();
|
|
|
const store = userStore();
|
|
|
|
|
|
+const router = useRouter();
|
|
|
const favorites = ref([]);
|
|
|
const loading = ref(false);
|
|
|
const highlightIndex = ref(0);
|
|
|
@@ -232,6 +235,12 @@ const nextHighlight = () => {
|
|
|
highlightIndex.value = (highlightIndex.value + 1) % favorites.value.length;
|
|
|
};
|
|
|
|
|
|
+const goToSearch = () => {
|
|
|
+ router.push({
|
|
|
+ name: 'SearchPage'
|
|
|
+ });
|
|
|
+};
|
|
|
+
|
|
|
const confirmRemove = (item) => {
|
|
|
$q.dialog({
|
|
|
component: ProfileFavoriteRemoveDialog,
|