Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 63ff9f31 authored by VIAUD Nathan's avatar VIAUD Nathan
Browse files

refactor: explanation -> feedback

parent 85bd2adc
No related branches found
No related tags found
1 merge request!159Resolve "explanations -> feedback"
Pipeline #1076187 passed
{
"name": "epoc-editor",
"version": "0.1.9-beta",
"version": "0.1.10-beta",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "epoc-editor",
"version": "0.1.9-beta",
"version": "0.1.10-beta",
"license": "CeCILL-B",
"dependencies": {
"@electron/notarize": "^1.2.2",
......@@ -336,9 +336,9 @@
}
},
"node_modules/@epoc/epoc-types": {
"version": "2.0.0-beta.14",
"resolved": "https://registry.npmjs.org/@epoc/epoc-types/-/epoc-types-2.0.0-beta.14.tgz",
"integrity": "sha512-23bFBFXpVzNzYjZuFLtT4J68NaIVn3EuiB+v5A+BBhU4YLnlJq0sqwznPGmsn+ae89Uun+mBMy9HjzqXwQXmww==",
"version": "2.0.0-beta.17",
"resolved": "https://registry.npmjs.org/@epoc/epoc-types/-/epoc-types-2.0.0-beta.17.tgz",
"integrity": "sha512-wP5+pyqQcx7UFGgTbGyp5kTxMnrRikGKTpnfZ6PDCvjDM+/sbQJT6k0ivkrEicdau94swTL8gJNYIilEk8IyGg==",
"license": "CeCILL-B"
},
"node_modules/@esbuild/android-arm": {
......
......@@ -248,7 +248,7 @@ function newQuestion(epoc: EpocV1, questionNode: any): string {
};
});
type = questionNode.formType;
} else if (questionNode.formType === 'custom'){
} else if (questionNode.formType === 'custom') {
//? responses need to contain values but we don't need them for custom questions
responses = ['sample response'];
......@@ -267,13 +267,13 @@ function newQuestion(epoc: EpocV1, questionNode: any): string {
score: questionNode.formValues?.score || 0,
responses,
correctResponse,
explanation: questionNode.formValues?.explanation || '',
feedback: questionNode.formValues?.explanation || '',
};
if(questionNode.formType === 'custom') {
if (questionNode.formType === 'custom') {
(question as CustomQuestion).template = template;
(question as CustomQuestion).data = {};
for(const value of questionNode.formValues.data) {
for (const value of questionNode.formValues.data) {
(question as CustomQuestion).data[value.key] = value.value;
}
}
......@@ -314,7 +314,7 @@ export const graphService = {
getPreviousNode,
getNextNode,
openContextMenu,
getProjectJSON
getProjectJSON,
};
let openedConditionIndex: number | null = null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment