Skip to content

Commit 6eb618f

Browse files
committed
Since pre-post-test creation and editing is not implemented in studio yet, filter out this option
1 parent 892566d commit 6eb618f

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

contentcuration/contentcuration/frontend/shared/views/contentNodeFields/CompletionOptions/MasteryCriteriaGoal.vue

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@
3636
translateValidator,
3737
getInvalidText,
3838
} from 'shared/utils/validation';
39-
import MasteryModels, { MasteryModelsList } from 'shared/leUtils/MasteryModels';
39+
import MasteryModels, {
40+
MasteryModelsList,
41+
MasteryModelsNames,
42+
} from 'shared/leUtils/MasteryModels';
4043
import { constantsTranslationMixin } from 'shared/mixins';
4144
import DropdownWrapper from 'shared/views/form/DropdownWrapper';
4245
@@ -84,10 +87,13 @@
8487
},
8588
},
8689
masteryCriteria() {
87-
return MasteryModelsList.map(model => ({
88-
text: this.translateConstant(model),
89-
value: model,
90-
}));
90+
// temporarily exclude pre/post test until the creation/editing UI is done
91+
return MasteryModelsList.filter(model => model !== MasteryModelsNames.PRE_POST_TEST).map(
92+
model => ({
93+
text: this.translateConstant(model),
94+
value: model,
95+
}),
96+
);
9197
},
9298
masteryRules() {
9399
return this.required ? getMasteryModelValidators().map(translateValidator) : [];

0 commit comments

Comments
 (0)