feat: livecode settings

This commit is contained in:
Jannat Patel
2025-06-25 19:57:07 +05:30
parent e71275a0dc
commit b8981c249f
6 changed files with 92 additions and 35 deletions

View File

@@ -60,6 +60,16 @@ export const sessionStore = defineStore('lms-session', () => {
auto: false,
})
const livecodeURL = createResource({
url: 'frappe.client.get_single_value',
params: {
doctype: 'LMS Settings',
field: 'livecode_url',
},
cache: 'livecodeURL',
auto: true,
})
return {
user,
isLoggedIn,
@@ -68,5 +78,6 @@ export const sessionStore = defineStore('lms-session', () => {
brand,
branding,
sidebarSettings,
livecodeURL,
}
})