Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions frontend/src/utils/assignment.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ import AssessmentPlugin from '@/components/AssessmentPlugin.vue'
import translationPlugin from '../translation'
import { usersStore } from '@/stores/user'
import { call } from 'frappe-ui'
import { useRouter } from 'vue-router'
import router from '@/router'
import { getLmsRoute } from '@/utils/basePath'

const router = useRouter()
export class Assignment {
constructor({ data, api, readOnly }) {
this.data = data
Expand Down
5 changes: 2 additions & 3 deletions frontend/src/utils/quiz.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ import { usersStore } from '../stores/user'
import translationPlugin from '../translation'
import { CircleHelp } from 'lucide-vue-next'
import { getLmsRoute } from '@/utils/basePath'
import { useRouter } from 'vue-router'

const router = useRouter()
import router from '@/router'

export class Quiz {
constructor({ data, api, readOnly }) {
Expand Down Expand Up @@ -69,6 +67,7 @@ export class Quiz {
},
})
app.use(translationPlugin)
app.use(router)
app.mount(this.wrapper)
}

Expand Down