From aa19a721934fea22c8e0faecb3ce42a65b266d51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de> Date: Tue, 20 Nov 2018 19:02:31 +0100 Subject: [PATCH] Fix content-choice/yesno/likert-creation --- .../content-choice-creator.component.ts | 4 ++-- .../content-likert-creator.component.ts | 4 ++-- .../content-yes-no-creator.component.ts | 4 ++-- .../comment-create-page/comment-create-page.component.ts | 2 ++ 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/app/components/creator/content-choice-creator/content-choice-creator.component.ts b/src/app/components/creator/content-choice-creator/content-choice-creator.component.ts index 0b1d6f577..75ae98494 100644 --- a/src/app/components/creator/content-choice-creator/content-choice-creator.component.ts +++ b/src/app/components/creator/content-choice-creator/content-choice-creator.component.ts @@ -288,8 +288,8 @@ export class ContentChoiceCreatorComponent implements OnInit { contentGroup = this.contentCol; } this.contentService.addContent(new ContentChoice( - '', - '', + null, + null, this.roomId, this.contentSub, this.contentBod, diff --git a/src/app/components/creator/content-likert-creator/content-likert-creator.component.ts b/src/app/components/creator/content-likert-creator/content-likert-creator.component.ts index 88f54ea9e..9dc7e9a4e 100644 --- a/src/app/components/creator/content-likert-creator/content-likert-creator.component.ts +++ b/src/app/components/creator/content-likert-creator/content-likert-creator.component.ts @@ -98,8 +98,8 @@ export class ContentLikertCreatorComponent implements OnInit { contentGroup = this.contentCol; } this.contentService.addContent(new ContentChoice( - '', - '', + null, + null, this.roomId, this.contentSub, this.contentBod, diff --git a/src/app/components/creator/content-yes-no-creator/content-yes-no-creator.component.ts b/src/app/components/creator/content-yes-no-creator/content-yes-no-creator.component.ts index 93d926fde..790855e94 100644 --- a/src/app/components/creator/content-yes-no-creator/content-yes-no-creator.component.ts +++ b/src/app/components/creator/content-yes-no-creator/content-yes-no-creator.component.ts @@ -98,8 +98,8 @@ export class ContentYesNoCreatorComponent implements OnInit { contentGroup = this.contentCol; } this.contentService.addContent(new ContentChoice( - '', - '', + null, + null, this.roomId, this.contentSub, this.contentBod, diff --git a/src/app/components/participant/comment-create-page/comment-create-page.component.ts b/src/app/components/participant/comment-create-page/comment-create-page.component.ts index ef80b582a..9dafaa1af 100644 --- a/src/app/components/participant/comment-create-page/comment-create-page.component.ts +++ b/src/app/components/participant/comment-create-page/comment-create-page.component.ts @@ -35,6 +35,8 @@ export class CommentCreatePageComponent implements OnInit { this.roomId = localStorage.getItem(`roomId`); } + // TODO: check if empty + send(subject: string, body: string): void { subject = subject.trim(); body = body.trim(); -- GitLab