add new endpoint to sidebar
This commit is contained in:
@@ -35,7 +35,7 @@
|
|||||||
padding="0",
|
padding="0",
|
||||||
style="color: var(--font-grey-color)"
|
style="color: var(--font-grey-color)"
|
||||||
)
|
)
|
||||||
base-avatar(:size="36", :color="userData?.color", v-if="!userData?.photo") {{changeName}}
|
base-avatar(:size="36", :color="userData?.color", v-if="!userData?.photo") {{changeName}}
|
||||||
base-avatar(:size="32", v-else)
|
base-avatar(:size="32", v-else)
|
||||||
img.h-full.object-cover(:src="url + userData?.photo", alt="Avatar")
|
img.h-full.object-cover(:src="url + userData?.photo", alt="Avatar")
|
||||||
.h-6.w-6.flex.items-center.justify-center.ml-2.pt-1
|
.h-6.w-6.flex.items-center.justify-center.ml-2.pt-1
|
||||||
@@ -55,6 +55,8 @@ import BaseAvatar from "@/components/base/BaseAvatar";
|
|||||||
import BasePopup from "@/components/base/BasePopup.vue";
|
import BasePopup from "@/components/base/BasePopup.vue";
|
||||||
import BaseClientFormCreate from "@/components/base/BaseClientFormCreate";
|
import BaseClientFormCreate from "@/components/base/BaseClientFormCreate";
|
||||||
import BaseButton from "@/components/base/BaseButton.vue";
|
import BaseButton from "@/components/base/BaseButton.vue";
|
||||||
|
import { fetchWrapper } from "@/shared/fetchWrapper";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "TheHeader",
|
name: "TheHeader",
|
||||||
components: {
|
components: {
|
||||||
@@ -111,6 +113,9 @@ export default {
|
|||||||
this.showPopup = !this.showPopup;
|
this.showPopup = !this.showPopup;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
async mounted() {
|
||||||
|
this.userData = await fetchWrapper.get("users/me");
|
||||||
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ export default createStore({
|
|||||||
state: {
|
state: {
|
||||||
url: "https://astra-dev.dopcore.com",
|
url: "https://astra-dev.dopcore.com",
|
||||||
routingHistory: window.history,
|
routingHistory: window.history,
|
||||||
userData: JSON.parse(localStorage.getItem("userData")),
|
userData: {},
|
||||||
},
|
},
|
||||||
modules: {
|
modules: {
|
||||||
medical,
|
medical,
|
||||||
|
|||||||
Reference in New Issue
Block a user