diff --git a/contentcuration/contentcuration/frontend/channelEdit/components/ContentNodeListItem/index.vue b/contentcuration/contentcuration/frontend/channelEdit/components/ContentNodeListItem/index.vue
index 12118666f6..eb5364e226 100644
--- a/contentcuration/contentcuration/frontend/channelEdit/components/ContentNodeListItem/index.vue
+++ b/contentcuration/contentcuration/frontend/channelEdit/components/ContentNodeListItem/index.vue
@@ -331,7 +331,7 @@
transition: background-color ease 500ms;
.highlight & {
- background-color: #e3f0ed;
+ background-color: var(--v-greenHighlightBackground-base);
}
&__action,
diff --git a/contentcuration/contentcuration/frontend/channelEdit/components/ResourcePanel.vue b/contentcuration/contentcuration/frontend/channelEdit/components/ResourcePanel.vue
index 597acad49b..9df7c448f1 100644
--- a/contentcuration/contentcuration/frontend/channelEdit/components/ResourcePanel.vue
+++ b/contentcuration/contentcuration/frontend/channelEdit/components/ResourcePanel.vue
@@ -433,7 +433,7 @@
return '';
}
- const masteryModel = this.node.extra_fields.type;
+ const masteryModel = this.node.extra_fields.mastery_model;
if (!masteryModel) {
return this.defaultText;
} else if (masteryModel === MasteryModelsNames.M_OF_N) {
diff --git a/contentcuration/contentcuration/frontend/channelEdit/components/edit/DetailsTabView.vue b/contentcuration/contentcuration/frontend/channelEdit/components/edit/DetailsTabView.vue
index 2862a8bf4b..68a851828b 100644
--- a/contentcuration/contentcuration/frontend/channelEdit/components/edit/DetailsTabView.vue
+++ b/contentcuration/contentcuration/frontend/channelEdit/components/edit/DetailsTabView.vue
@@ -14,12 +14,13 @@
-
+
{{ $tr('basicInfoHeader') }}
author = e.srcElement.value"
+ @input="author = $event"
@focus="trackClick('Author')"
>
@@ -207,6 +210,7 @@
box
:value="provider && provider.toString()"
@input.native="e => provider = e.srcElement.value"
+ @input="provider = $event"
@focus="trackClick('Provider')"
>
@@ -227,6 +231,7 @@
box
:value="aggregator && aggregator.toString()"
@input.native="e => aggregator = e.srcElement.value"
+ @input="aggregator = $event"
@focus="trackClick('Aggregator')"
>
@@ -262,7 +267,7 @@
box
:value="copyright_holder && copyright_holder.toString()"
@input.native="e => copyright_holder = e.srcElement.value"
- @input="e => copyright_holder = e"
+ @input="copyright_holder = $event"
@focus="trackClick('Copyright holder')"
/>
@@ -425,7 +430,7 @@
role: generateGetterSetter('role_visibility'),
language: generateGetterSetter('language'),
mastery_model() {
- return this.getExtraFieldsValueFromNodes('type');
+ return this.getExtraFieldsValueFromNodes('mastery_model');
},
m() {
return this.getExtraFieldsValueFromNodes('m');
@@ -436,7 +441,7 @@
masteryModelItem: {
get() {
return {
- type: this.mastery_model,
+ mastery_model: this.mastery_model,
m: this.m,
n: this.n,
};
diff --git a/contentcuration/contentcuration/frontend/channelEdit/components/edit/__tests__/data.js b/contentcuration/contentcuration/frontend/channelEdit/components/edit/__tests__/data.js
index 3891cd898c..28b7e68290 100644
--- a/contentcuration/contentcuration/frontend/channelEdit/components/edit/__tests__/data.js
+++ b/contentcuration/contentcuration/frontend/channelEdit/components/edit/__tests__/data.js
@@ -28,7 +28,7 @@ export function generateNode(props = {}) {
});
let extra_fields = {
- type: 'do_all',
+ mastery_model: 'do_all',
randomize: false,
};
diff --git a/contentcuration/contentcuration/frontend/channelEdit/components/edit/__tests__/detailsTabView.spec.js b/contentcuration/contentcuration/frontend/channelEdit/components/edit/__tests__/detailsTabView.spec.js
index ee02d52914..927f8d04ab 100644
--- a/contentcuration/contentcuration/frontend/channelEdit/components/edit/__tests__/detailsTabView.spec.js
+++ b/contentcuration/contentcuration/frontend/channelEdit/components/edit/__tests__/detailsTabView.spec.js
@@ -83,7 +83,7 @@ describe.skip('detailsTabView', () => {
role: DEFAULT_EXERCISE.role_visibility,
randomizeOrder: DEFAULT_EXERCISE.extra_fields.randomize,
masteryModel: {
- type: DEFAULT_EXERCISE.extra_fields.type,
+ mastery_model: DEFAULT_EXERCISE.extra_fields.mastery_model,
},
copyrightHolder: DEFAULT_EXERCISE.copyright_holder,
});
@@ -146,7 +146,7 @@ describe.skip('detailsTabView', () => {
});
it('exercise fields should set selected node data extra_fields', () => {
wrapper.find({ ref: 'mastery_model' }).vm.$emit('input', { type: 'm_of_n' });
- expect(wrapper.vm.masteryModel.type).toEqual('m_of_n');
+ expect(wrapper.vm.masteryModel.mastery_model).toEqual('m_of_n');
});
});
describe('on validation', () => {
diff --git a/contentcuration/contentcuration/frontend/channelEdit/views/files/ContentRenderer.vue b/contentcuration/contentcuration/frontend/channelEdit/views/files/ContentRenderer.vue
index c59573d28c..27a96905e2 100644
--- a/contentcuration/contentcuration/frontend/channelEdit/views/files/ContentRenderer.vue
+++ b/contentcuration/contentcuration/frontend/channelEdit/views/files/ContentRenderer.vue
@@ -42,6 +42,10 @@
@load="loading = false"
>
@@ -46,11 +52,12 @@