@ViewChild('textarea') private textareaElement: ElementRef
private addingComment = false
- private uri: string
constructor (
protected formValidatorService: FormValidatorService,
text: this.videoCommentValidatorsService.VIDEO_COMMENT_TEXT
})
- this.uri = this.router.url
-
if (this.user) {
if (this.focusOnInit === true) {
this.textareaElement.nativeElement.focus()
this.formValidated()
}
- openVisitorModal (event) {
+ openVisitorModal (event: any) {
if (this.user === null) { // we only open it for visitors
// fixing ng-bootstrap ModalService and the "Expression Changed After It Has Been Checked" Error
event.srcElement.blur()