fix: export livecodeURL from settings store

This commit is contained in:
Jannat Patel
2025-11-06 12:28:27 +05:30
parent b1be568991
commit d00d2de1cc
3 changed files with 1 additions and 9 deletions

View File

@@ -192,14 +192,6 @@ const hasHigherAccess = () => {
return $user.data?.is_evaluator || $user.data?.is_moderator
}
const isEvaluatorOrModerator = () => {
return (
profile.data?.roles.filter(
(row) => row.role === 'Moderator' || row.role === 'Evaluator'
).length > 0
)
}
const getTabButtons = () => {
let buttons = [{ label: 'About' }, { label: 'Certificates' }]
if ($user.data?.is_moderator) buttons.push({ label: 'Roles' })

View File

@@ -56,5 +56,6 @@ export const useSettings = defineStore('settings', () => {
contactUsEmail,
contactUsURL,
sidebarSettings,
livecodeURL,
}
})