diff --git a/frontend/src/components/UserDropdown.vue b/frontend/src/components/UserDropdown.vue
index e9842c9b..d71ea7da 100644
--- a/frontend/src/components/UserDropdown.vue
+++ b/frontend/src/components/UserDropdown.vue
@@ -46,8 +46,10 @@
import LMSLogo from '@/components/Icons/LMSLogo.vue'
import { sessionStore } from '@/stores/session'
import { Dropdown } from 'frappe-ui'
-import { ChevronDown } from 'lucide-vue-next'
+import { ChevronDown, LogIn, LogOut, User } from 'lucide-vue-next'
+import { useRouter } from 'vue-router'
+const router = useRouter()
const props = defineProps({
isCollapsed: {
type: Boolean,
@@ -57,10 +59,20 @@ const props = defineProps({
const { logout, user } = sessionStore()
let { isLoggedIn } = sessionStore()
-
+console.log(user)
const userDropdownOptions = [
{
- icon: 'log-out',
+ icon: User,
+ label: 'My Profile',
+ onClick: () => {
+ router.push(`/user/${user.data?.username}`)
+ },
+ condition: () => {
+ return isLoggedIn
+ },
+ },
+ {
+ icon: LogOut,
label: 'Log out',
onClick: () => {
logout.submit().then(() => {
@@ -72,7 +84,7 @@ const userDropdownOptions = [
},
},
{
- icon: 'log-in',
+ icon: LogIn,
label: 'Log in',
onClick: () => {
window.location.href = '/login'
diff --git a/frontend/src/pages/Courses.vue b/frontend/src/pages/Courses.vue
index 000b58cb..52422499 100644
--- a/frontend/src/pages/Courses.vue
+++ b/frontend/src/pages/Courses.vue
@@ -9,12 +9,21 @@
:items="[{ label: __('All Courses'), route: { name: 'Courses' } }]"
/>
-
+
+
+
diff --git a/frontend/src/pages/CreateCourse.vue b/frontend/src/pages/CreateCourse.vue
new file mode 100644
index 00000000..671224e5
--- /dev/null
+++ b/frontend/src/pages/CreateCourse.vue
@@ -0,0 +1,131 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/frontend/src/pages/CreateOutline.vue b/frontend/src/pages/CreateOutline.vue
new file mode 100644
index 00000000..e69de29b
diff --git a/frontend/src/pages/JobDetail.vue b/frontend/src/pages/JobDetail.vue
index 42d7d8bb..7904224f 100644
--- a/frontend/src/pages/JobDetail.vue
+++ b/frontend/src/pages/JobDetail.vue
@@ -126,7 +126,9 @@ const jobApplication = createResource({
})
onMounted(() => {
- jobApplication.submit()
+ if (user.data?.name) {
+ jobApplication.submit()
+ }
})
const openApplicationModal = () => {
diff --git a/frontend/src/pages/Lesson.vue b/frontend/src/pages/Lesson.vue
index f5277033..40044fed 100644
--- a/frontend/src/pages/Lesson.vue
+++ b/frontend/src/pages/Lesson.vue
@@ -1,5 +1,5 @@
-
+
@@ -65,24 +65,24 @@
-
- {{ course.data.instructors[0].full_name }}
+
+ {{ lesson.data.instructors[0].full_name }}
-
- {{ course.data.instructors[0].first_name }} and
- {{ course.data.instructors[1].first_name }}
+
+ {{ lesson.data.instructors[0].first_name }} and
+ {{ lesson.data.instructors[1].first_name }}
-
- {{ course.data.instructors[0].first_name }} and
- {{ course.data.instructors.length - 1 }} others
+
+ {{ lesson.data.instructors[0].first_name }} and
+ {{ lesson.data.instructors.length - 1 }} others
- {{ course.data.title }}
+ {{ lesson.data.course_title }}
-
- {{ Math.ceil(course.data.membership.progress) }}% completed
+
+ {{ Math.ceil(lesson.data.membership.progress) }}% completed
@@ -204,7 +204,7 @@