GitLab steht wegen Wartungsarbeiten am Montag, den 10. Mai, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

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 {
}
const exportComments = JSON.parse(JSON.stringify(sortedComments));
let valueFields = '';
const fieldNames = ['room-page.question', 'room-page.timestamp', 'room-page.presented',
'room-page.correct/wrong', 'room-page.score', 'room-page.token', 'room-page.token-time'];
const fieldNames = ['room-page.question', 'room-page.timestamp', 'room-page.presented', 'room-page.correct/wrong',
'room-page.score', 'room-page.answer', 'room-page.token', 'room-page.token-time'];
let keyFields = '';
this.translationService.get(fieldNames).subscribe(msgs => {
for (let i = 0; i < fieldNames.length; i++) {
......@@ -147,6 +147,8 @@ export class CommentSettingsComponent implements OnInit {
valueFields += Object.values(element).slice(5, 6) + delimiter;
valueFields += Object.values(element).slice(7, 8) + 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) {
valueFields += Object.values(element).slice(12, 13) + delimiter;
let btTime;
......
......@@ -176,6 +176,7 @@
"a11y-settings-direct-send": "Schieberegler, um Fragen sofort sichtbar zu machen.",
"a11y-threshold": "Schieberegler zum Einstellen des Schwellenwerts für sichtbare Fragen",
"abort": "Abbrechen",
"answer": "Antwort",
"answer-statistics": "Statistiken",
"bonus-token": "Tokens für Bonuspunkte",
"bonus-token-header": "Tokens für Bonuspunkte",
......@@ -244,11 +245,6 @@
"token-deleted": "Der Token wurde gelöscht.",
"tokens-deleted": "Alle Tokens dieser Sitzung wurden gelöscht."
},
"comment-answer-form": {
"answer": "Gib eine Antwort.",
"send": "Senden",
"cancel": "Abbrechen"
},
"session": {
"a11y-description": "Gib eine Beschreibung für die Sitzung ein.",
"create-session": "Speichern",
......@@ -256,16 +252,5 @@
"max-ls": "Maximale Anzahl Zeichen:",
"session-name": "Name der Sitzung",
"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 @@
"a11y-settings-direct-send": "Slider to send Questions directly to participant",
"a11y-threshold": "Slider for setting the threshold for visible questions",
"abort": "Abort",
"answer": "Answer",
"answer-statistics": "Statistics",
"bonus-token": "Tokens for bonus points",
"bonus-token-header": "Tokens for bonus points",
......@@ -245,9 +246,6 @@
"token-deleted": "Token has been deleted.",
"tokens-deleted": "All tokens of this sessions have been deleted."
},
"comment-answer-form": {
"answer": "Give an answer."
},
"session": {
"a11y-description": "Enter a description for the session",
"create-session": "Create session",
......@@ -255,16 +253,5 @@
"max-ls": "Max. characters:",
"session-name": "Session name",
"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