Commit 13480610 authored by Lukas Mauß's avatar Lukas Mauß

Export answer of a question as well

parent ecbdbc0f
Pipeline #38095 passed with stages
in 7 minutes and 31 seconds
...@@ -130,8 +130,8 @@ export class CommentSettingsComponent implements OnInit { ...@@ -130,8 +130,8 @@ export class CommentSettingsComponent implements OnInit {
} }
const exportComments = JSON.parse(JSON.stringify(sortedComments)); const exportComments = JSON.parse(JSON.stringify(sortedComments));
let valueFields = ''; let valueFields = '';
const fieldNames = ['room-page.question', 'room-page.timestamp', 'room-page.presented', const fieldNames = ['room-page.question', 'room-page.timestamp', 'room-page.presented', 'room-page.correct/wrong',
'room-page.correct/wrong', 'room-page.score', 'room-page.token', 'room-page.token-time']; 'room-page.score', 'room-page.answer', 'room-page.token', 'room-page.token-time'];
let keyFields = ''; let keyFields = '';
this.translationService.get(fieldNames).subscribe(msgs => { this.translationService.get(fieldNames).subscribe(msgs => {
for (let i = 0; i < fieldNames.length; i++) { for (let i = 0; i < fieldNames.length; i++) {
...@@ -147,6 +147,8 @@ export class CommentSettingsComponent implements OnInit { ...@@ -147,6 +147,8 @@ export class CommentSettingsComponent implements OnInit {
valueFields += Object.values(element).slice(5, 6) + delimiter; valueFields += Object.values(element).slice(5, 6) + delimiter;
valueFields += Object.values(element).slice(7, 8) + delimiter; valueFields += Object.values(element).slice(7, 8) + delimiter;
valueFields += Object.values(element).slice(9, 10) + delimiter; valueFields += Object.values(element).slice(9, 10) + delimiter;
const answer = Object.values(element).slice(11, 12) || '';
valueFields += answer + delimiter;
if (Object.values(element).length > 12) { if (Object.values(element).length > 12) {
valueFields += Object.values(element).slice(12, 13) + delimiter; valueFields += Object.values(element).slice(12, 13) + delimiter;
let btTime; let btTime;
......
...@@ -176,6 +176,7 @@ ...@@ -176,6 +176,7 @@
"a11y-settings-direct-send": "Schieberegler, um Fragen sofort sichtbar zu machen.", "a11y-settings-direct-send": "Schieberegler, um Fragen sofort sichtbar zu machen.",
"a11y-threshold": "Schieberegler zum Einstellen des Schwellenwerts für sichtbare Fragen", "a11y-threshold": "Schieberegler zum Einstellen des Schwellenwerts für sichtbare Fragen",
"abort": "Abbrechen", "abort": "Abbrechen",
"answer": "Antwort",
"answer-statistics": "Statistiken", "answer-statistics": "Statistiken",
"bonus-token": "Tokens für Bonuspunkte", "bonus-token": "Tokens für Bonuspunkte",
"bonus-token-header": "Tokens für Bonuspunkte", "bonus-token-header": "Tokens für Bonuspunkte",
...@@ -244,11 +245,6 @@ ...@@ -244,11 +245,6 @@
"token-deleted": "Der Token wurde gelöscht.", "token-deleted": "Der Token wurde gelöscht.",
"tokens-deleted": "Alle Tokens dieser Sitzung wurden gelöscht." "tokens-deleted": "Alle Tokens dieser Sitzung wurden gelöscht."
}, },
"comment-answer-form": {
"answer": "Gib eine Antwort.",
"send": "Senden",
"cancel": "Abbrechen"
},
"session": { "session": {
"a11y-description": "Gib eine Beschreibung für die Sitzung ein.", "a11y-description": "Gib eine Beschreibung für die Sitzung ein.",
"create-session": "Speichern", "create-session": "Speichern",
...@@ -256,16 +252,5 @@ ...@@ -256,16 +252,5 @@
"max-ls": "Maximale Anzahl Zeichen:", "max-ls": "Maximale Anzahl Zeichen:",
"session-name": "Name der Sitzung", "session-name": "Name der Sitzung",
"preview": "Vorschau" "preview": "Vorschau"
},
"statistic": {
"abstentions": "Enthaltungen",
"answer-statistic": "Antwortstatistik",
"answers": "Antworten",
"content": "Frage",
"good": "Gut",
"improvable": "Luft nach oben",
"no-answers": "Keine Antworten",
"no-questions": "Noch keine Antworten",
"percentage": "Prozent"
} }
} }
...@@ -177,6 +177,7 @@ ...@@ -177,6 +177,7 @@
"a11y-settings-direct-send": "Slider to send Questions directly to participant", "a11y-settings-direct-send": "Slider to send Questions directly to participant",
"a11y-threshold": "Slider for setting the threshold for visible questions", "a11y-threshold": "Slider for setting the threshold for visible questions",
"abort": "Abort", "abort": "Abort",
"answer": "Answer",
"answer-statistics": "Statistics", "answer-statistics": "Statistics",
"bonus-token": "Tokens for bonus points", "bonus-token": "Tokens for bonus points",
"bonus-token-header": "Tokens for bonus points", "bonus-token-header": "Tokens for bonus points",
...@@ -245,9 +246,6 @@ ...@@ -245,9 +246,6 @@
"token-deleted": "Token has been deleted.", "token-deleted": "Token has been deleted.",
"tokens-deleted": "All tokens of this sessions have been deleted." "tokens-deleted": "All tokens of this sessions have been deleted."
}, },
"comment-answer-form": {
"answer": "Give an answer."
},
"session": { "session": {
"a11y-description": "Enter a description for the session", "a11y-description": "Enter a description for the session",
"create-session": "Create session", "create-session": "Create session",
...@@ -255,16 +253,5 @@ ...@@ -255,16 +253,5 @@
"max-ls": "Max. characters:", "max-ls": "Max. characters:",
"session-name": "Session name", "session-name": "Session name",
"preview": "Preview" "preview": "Preview"
},
"statistic": {
"abstentions": "Abstentions",
"answer-statistic": "Answer statistics",
"answers": "Answers",
"content": "Content",
"good": "Good",
"improvable": "Improvable",
"no-answers": "No answers",
"no-questions": "There are no answers yet.",
"percentage": "Percentage"
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment