diff --git a/src/components/EditProfileModal.vue b/src/components/EditProfileModal.vue new file mode 100644 index 0000000..4e24440 --- /dev/null +++ b/src/components/EditProfileModal.vue @@ -0,0 +1,97 @@ + + + + + \ No newline at end of file diff --git a/src/components/MakeProposalModal.vue b/src/components/MakeProposalModal.vue index 1005dad..9131293 100644 --- a/src/components/MakeProposalModal.vue +++ b/src/components/MakeProposalModal.vue @@ -30,7 +30,7 @@ comments: '', }); - const { geocodeAddress, getDirections } = useDirectionsRender() + const { getDirections } = useDirectionsRender() const props = defineProps({ load: { diff --git a/src/components/ProfilePopup.vue b/src/components/ProfilePopup.vue index 5ec77dc..836db26 100644 --- a/src/components/ProfilePopup.vue +++ b/src/components/ProfilePopup.vue @@ -1,18 +1,63 @@ \ No newline at end of file diff --git a/src/layouts/AdminLayout.vue b/src/layouts/AdminLayout.vue index b8433d2..5f439ff 100644 --- a/src/layouts/AdminLayout.vue +++ b/src/layouts/AdminLayout.vue @@ -3,6 +3,7 @@ import NavBar from '../components/NavBar.vue'; import Sidebar from '../components/Sidebar.vue'; import ProfilePopup from '../components/ProfilePopup.vue'; + import EditProfileModal from '../components/EditProfileModal.vue'; diff --git a/src/router/index.js b/src/router/index.js index 8711ed2..81046d1 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -78,6 +78,11 @@ const router = createRouter({ name: 'company', component: () => import('../views/MyCompanyView.vue'), }, + { + path: 'profile', + name: 'profile', + component: () => import('../views/EditProfileView.vue'), + }, { path: 'empresa/:id', name: 'public-users', diff --git a/src/stores/notifications.js b/src/stores/notifications.js index 4cf937f..6271c23 100644 --- a/src/stores/notifications.js +++ b/src/stores/notifications.js @@ -20,7 +20,6 @@ export const useNotificationsStore = defineStore('notifications', () => { }); const toggleProfile = () => { - console.log('click'); openProfile.value = !openProfile.value; } @@ -30,6 +29,6 @@ export const useNotificationsStore = defineStore('notifications', () => { error, show, openProfile, - toggleProfile + toggleProfile, } }); \ No newline at end of file diff --git a/src/views/CompleteRegisterView.vue b/src/views/CompleteRegisterView.vue index ff29f99..6cdfebb 100644 --- a/src/views/CompleteRegisterView.vue +++ b/src/views/CompleteRegisterView.vue @@ -13,7 +13,7 @@ import { useAuthStore } from '../stores/auth'; import { complete_registry } from "../services/auth"; import { updateMyUserProfile } from "../services/company" -import Spiner from '../components/ui/Spiner.vue'; + import Spiner from '../components/ui/Spiner.vue'; const notifications = useNotificationsStore(); const auth = useAuthStore(); diff --git a/src/views/EditProfileView.vue b/src/views/EditProfileView.vue new file mode 100644 index 0000000..823cdd9 --- /dev/null +++ b/src/views/EditProfileView.vue @@ -0,0 +1,117 @@ + + + + + \ No newline at end of file diff --git a/src/views/TrackingLoadView.vue b/src/views/TrackingLoadView.vue index a595961..9768bfb 100644 --- a/src/views/TrackingLoadView.vue +++ b/src/views/TrackingLoadView.vue @@ -10,7 +10,7 @@ const mapKey = import.meta.env.VITE_MAP_KEY; - const { geocodeAddress, getDirections } = useDirectionsRender() + const { getDirections } = useDirectionsRender() const { getLoadTracking, load, loading } = useTrackingLoad(); const route = useRoute(); const zoom = ref(6);