mod: texts of share load by link

This commit is contained in:
Alexandro Uc Santos
2024-10-26 17:28:05 -06:00
parent c8bbcdaad2
commit e0f551abb2
5 changed files with 9 additions and 9 deletions

View File

@@ -97,7 +97,7 @@
const sharePost = () => { const sharePost = () => {
const url = `https://console.etaviaporte.com/publico/carga/${props.load._id}`; const url = `https://console.etaviaporte.com/publico/carga/${props.load._id}`;
const title = ""; const title = "Revisa mi publicación de carga, ¡podría interesarte!";
navigator.share({ navigator.share({
title: title, title: title,

View File

@@ -11,7 +11,6 @@ export default function useDirectionsRender() {
const geocodeAddress = async (address) => { const geocodeAddress = async (address) => {
try { try {
const geocoder = new google.maps.Geocoder(); const geocoder = new google.maps.Geocoder();
console.log(address)
const data = await geocoder.geocode({ address: address }); const data = await geocoder.geocode({ address: address });
const latitude = data.results[0].geometry.location.lat(); const latitude = data.results[0].geometry.location.lat();
const longitude = data.results[0].geometry.location.lng(); const longitude = data.results[0].geometry.location.lng();
@@ -44,7 +43,6 @@ export default function useDirectionsRender() {
}) })
}) })
}); });
console.log({polylines})
return polylines; return polylines;
} else { } else {
return []; return [];

View File

@@ -351,7 +351,8 @@ const en = {
makeOffer: 'Make offer', makeOffer: 'Make offer',
msgOffertDone: 'Offer successfully completed', msgOffertDone: 'Offer successfully completed',
msgOffertUpdate: 'Offer updated successfully', msgOffertUpdate: 'Offer updated successfully',
selectVehicle: 'Select vehicle' selectVehicle: 'Select vehicle',
loginRequired: "You must log in to bid on"
}, },
vehicles: { vehicles: {
title: 'Vehicles', title: 'Vehicles',

View File

@@ -358,7 +358,8 @@ const es = {
makeOffer: 'Realizar oferta', makeOffer: 'Realizar oferta',
msgOffertDone: 'Oferta realizada con éxito', msgOffertDone: 'Oferta realizada con éxito',
msgOffertUpdate: 'Oferta actualizada con éxito', msgOffertUpdate: 'Oferta actualizada con éxito',
selectVehicle: 'Seleccionaar vehículo' selectVehicle: 'Seleccionaar vehículo',
loginRequired: "Debes iniciar sesión para hacer una oferta en"
}, },
vehicles: { vehicles: {
title: 'Vehiculos', title: 'Vehiculos',

View File

@@ -81,15 +81,15 @@
<h2 class="title text-center mt-5">Realizar oferta</h2> <h2 class="title text-center mt-5">Realizar oferta</h2>
<div <div
v-if="!hasSession" v-if="!hasSession"
class="alert alert-info text-dark mt-3 mb-2" class="alert alert-info text-dark text-center mt-3 mb-2"
> >
Para realizar oferta es necesario que inicies sesión en Etaviaporte <span>{{ t('proposals.loginRequired') }} <b>Etaviaporte</b></span>
<RouterLink <RouterLink
class="btn btn-dark ms-4" class="btn btn-dark ms-2"
target="_blank" target="_blank"
:to="{name: 'login'}" :to="{name: 'login'}"
> >
Iniciar sesión {{ t('login.title') }}
</RouterLink> </RouterLink>
</div> </div>
<Spiner v-if="loading"/> <Spiner v-if="loading"/>