소스 검색

Merge remote-tracking branch 'remotes/origin/fix/kay-alinhar-opções-da-oportunidades' into development

Gustavo Mantovani 2 주 전
부모
커밋
048d258ef9
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      src/components/profile/ProfileFavoritesDialog.vue

+ 9 - 0
src/components/profile/ProfileFavoritesDialog.vue

@@ -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,