fix: branding, course, lesson and certificate creation

This commit is contained in:
Jannat Patel
2024-04-03 22:42:59 +05:30
parent efcdba3a29
commit a46306720b
14 changed files with 84 additions and 23 deletions

View File

@@ -41,10 +41,20 @@ export const sessionStore = defineStore('lms-session', () => {
},
})
const branding = createResource({
url: 'lms.lms.api.get_branding',
auto: true,
cache: true,
onSuccess(data) {
document.querySelector("link[rel='icon']").href = data.favicon
},
})
return {
user,
isLoggedIn,
login,
logout,
branding,
}
})