Skip to content
Snippets Groups Projects
Commit 3aba7c47 authored by Thomas Lenz's avatar Thomas Lenz
Browse files

Add abstain button and implement simple method for console.log

parent 8a943025
No related merge requests found
......@@ -12,5 +12,6 @@
<mat-chip color="primary" selected="true">Answer sent</mat-chip>
</mat-chip-list>
<mat-divider></mat-divider>
<button mat-raised-button color="primary">Send answer</button>
<button mat-raised-button type="submit" color="primary">Submit</button>
<button mat-raised-button (click)="abstain($event)" color="primary">Abstain</button>
</form>
......@@ -70,4 +70,9 @@ export class ContentChoiceParticipantComponent implements OnInit {
// ToDo: Implement function in service
// this.answerService.addChoiceAnswer(selectedAnswers);
}
abstain($event) {
$event.preventDefault();
console.log('abstain');
}
}
......@@ -9,4 +9,5 @@
</mat-chip-list>
</mat-form-field>
<button mat-raised-button type="submit" color="primary">Submit</button>
<button mat-raised-button (click)="abstain($event)" color="primary">Abstain</button>
</form>
......@@ -49,4 +49,9 @@ export class ContentTextParticipantComponent implements OnInit {
creationTimestamp: new Date()
} as AnswerText).subscribe(); */
}
abstain($event) {
$event.preventDefault();
console.log('abstain');
}
}
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