Merge pull request #1133 from pateljannat/issues-50

fix: misc issues
This commit is contained in:
Jannat Patel
2024-11-18 11:23:25 +05:30
committed by GitHub
7 changed files with 17 additions and 25 deletions

View File

@@ -30,6 +30,7 @@
</FormControl>
</div>
<router-link
v-if="user.data?.is_moderator || user.data?.is_instructor"
:to="{
name: 'CourseForm',
params: {
@@ -37,7 +38,7 @@
},
}"
>
<Button v-if="user.data?.is_moderator" variant="solid">
<Button variant="solid">
<template #prefix>
<Plus class="h-4 w-4" />
</template>

View File

@@ -141,6 +141,7 @@
v-slot="{ idx, column, item }"
v-for="row in quiz.questions"
@click="openQuestionModal(row)"
class="cursor-pointer"
>
<ListRowItem :item="item">
<div

View File

@@ -65,11 +65,11 @@ onBeforeMount(() => {
Initialize: () => 'true',
Terminate: () => 'true',
GetValue: (key) => {
console.log(`GetValue called for key: ${key}`)
console.log(`GET: ${key}`)
return getDataFromLMS(key)
},
SetValue: (key, value) => {
console.log(`SetValue called for key: ${key} to value: ${value}`)
console.log(`SET: ${key} to value: ${value}`)
saveDataToLMS(key, value)
return 'true'
@@ -96,7 +96,6 @@ onBeforeMount(() => {
LMSGetErrorString: () => '',
LMSGetDiagnostic: () => '',
}
console.log(window.API_1484_11)
})
const getDataFromLMS = (key) => {