File tree Expand file tree Collapse file tree
contentcuration/contentcuration/frontend/shared/views/QTIEditor Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 noPadding
99 >
1010 <div class =" show-answers-inner" >
11- <Checkbox
11+ <KCheckbox
1212 v-model =" displayAnswersPreview "
1313 :label =" showAnswers$ ()"
1414 class="ma-0"
5757
5858<script >
5959
60+ import { v4 as uuidv4 } from ' uuid' ;
6061 import { ref , computed } from ' vue' ;
6162 import useKResponsiveWindow from ' kolibri-design-system/lib/composables/useKResponsiveWindow' ;
6263 import { qtiEditorStrings } from ' ./qtiEditorStrings' ;
6364 import { QtiInteraction } from ' ./constants' ;
6465 import QTIItemEditor from ' ./components/QTIItemEditor/index' ;
6566 import CollapsibleToolbar from ' ./components/CollapsibleToolbar/index.vue' ;
6667 import useQTIEditorActions from ' ./useQTIEditorActions' ;
67- import { uuid4 } from ' shared/data/resources' ;
68- import Checkbox from ' shared/views/form/Checkbox' ;
68+
69+ // Custom uuid4 function to match our dashless uuids on the server side
70+ function uuid4 () {
71+ return uuidv4 ().replace (/ -/ g , ' ' );
72+ }
6973
7074 /** Creates a blank item with a stable UUID and the default interaction type. */
7175 function createBlankItem () {
7983 export default {
8084 name: ' QTIEditor' ,
8185
82- components: { QTIItemEditor, CollapsibleToolbar, Checkbox },
86+ components: { QTIItemEditor, CollapsibleToolbar },
8387
8488 setup (props , { emit }) {
8589 const { windowIsSmall } = useKResponsiveWindow ();
You can’t perform that action at this time.
0 commit comments