From 689500d081965e509d0f09a40f8dc9c7782a3e14 Mon Sep 17 00:00:00 2001 From: scmmishra Date: Tue, 11 Dec 2018 10:58:14 +0530 Subject: [PATCH] Minor UI Fixes --- erpnext/public/js/education/lms/components/Navbar.vue | 4 ++-- erpnext/public/js/education/lms/components/ProfileInfo.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/erpnext/public/js/education/lms/components/Navbar.vue b/erpnext/public/js/education/lms/components/Navbar.vue index 69445c1116..7cd64b2577 100644 --- a/erpnext/public/js/education/lms/components/Navbar.vue +++ b/erpnext/public/js/education/lms/components/Navbar.vue @@ -54,8 +54,8 @@ export default { data() { return{ portal: {}, - avatar: frappe.get_cookie("user_image"), - fullName: frappe.get_cookie("full_name"), + avatar: frappe.user_image, + fullName: frappe.full_name, isLogin: frappe.is_user_logged_in() } }, diff --git a/erpnext/public/js/education/lms/components/ProfileInfo.vue b/erpnext/public/js/education/lms/components/ProfileInfo.vue index a6118a0ccc..72afdd0378 100644 --- a/erpnext/public/js/education/lms/components/ProfileInfo.vue +++ b/erpnext/public/js/education/lms/components/ProfileInfo.vue @@ -49,8 +49,8 @@ export default { name: "ProfileInfo", data() { return { - avatar: frappe.get_cookie("user_image"), - fullName: frappe.get_cookie("full_name"), + avatar: frappe.user_image, + fullName: frappe.full_name, abbr: frappe.get_abbr(frappe.get_cookie("full_name")), email: frappe.session.user, joiningDate: 'fetching...'