fix(favorites): adjust favorite button visibility and functionality
- removed favorite button from Discover cards - added call button for taxis in Favorites view - added favorite button in Shuttle details - added Shuttles category in Favorites view
This commit is contained in:
@ -7,6 +7,7 @@ import { getImageUrl } from '@/utils/imageUrl'
|
||||
import { analyticsService } from '@/services/analyticsService'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import LoadingBranded from '@/components/common/LoadingBranded.vue'
|
||||
import FavoriteButton from '@/components/FavoriteButton.vue'
|
||||
|
||||
const route = useRoute()
|
||||
const router = useRouter()
|
||||
@ -73,6 +74,13 @@ const getTripTypeLabel = (type: string) => {
|
||||
<h1 class="font-bold text-[var(--text-primary)] text-lg truncate flex-1">
|
||||
{{ shuttle?.company_name || t('shuttle.detailTitle') }}
|
||||
</h1>
|
||||
<FavoriteButton
|
||||
v-if="shuttle"
|
||||
item-type="shuttle"
|
||||
:item-id="shuttle.id"
|
||||
:item-name="shuttle.company_name || shuttle.origin + ' - ' + shuttle.destination"
|
||||
:item-image="shuttle.image_url || undefined"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<!-- Loading -->
|
||||
|
||||
Reference in New Issue
Block a user