Skip to content

Commit 8ea08db

Browse files
committed
Remove Studio imports
1 parent 47c618a commit 8ea08db

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

  • contentcuration/contentcuration/frontend/shared/views/QTIEditor

contentcuration/contentcuration/frontend/shared/views/QTIEditor/index.vue

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
noPadding
99
>
1010
<div class="show-answers-inner">
11-
<Checkbox
11+
<KCheckbox
1212
v-model="displayAnswersPreview"
1313
:label="showAnswers$()"
1414
class="ma-0"
@@ -57,15 +57,19 @@
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() {
@@ -79,7 +83,7 @@
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();

0 commit comments

Comments
 (0)