Changeset 15a34a3


Ignore:
Timestamp:
10/27/21 21:40:11 (3 years ago)
Author:
Стојков Марко <mst@…>
Branches:
dev
Children:
c152da1
Parents:
32cd040
Message:

Finishind details

Location:
src/Clients/Angular/finki-chattery/src/app/shared-app/components/question/ask-question-shared
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/Clients/Angular/finki-chattery/src/app/shared-app/components/question/ask-question-shared/ask-question-shared.component.html

    r32cd040 r15a34a3  
    1 <form class="example-container" [formGroup]="questionFormGroup">
     1<form [formGroup]="questionFormGroup">
    22  <mat-form-field class="full-width margin-bottom-sm" appearance="fill" appHandleInputFormErrors>
    33    <mat-label>{{ 'ask-question-question-title' | translate }}</mat-label>
  • src/Clients/Angular/finki-chattery/src/app/shared-app/components/question/ask-question-shared/ask-question-shared.component.ts

    r32cd040 r15a34a3  
    11import { Component, EventEmitter, OnInit, Output } from '@angular/core';
    22import { FormControl, FormGroup, Validators } from '@angular/forms';
    3 import { Router } from '@angular/router';
    43
    54import { CategoryFacadeService } from 'src/app/core/state/category-facade.service';
     
    2221  public categoriesList$ = this.categoriesFacade.getCategories();
    2322
    24   constructor(private categoriesFacade: CategoryFacadeService, private router: Router) {
     23  constructor(private categoriesFacade: CategoryFacadeService) {
    2524    this.questionFormGroup = new FormGroup({
    2625      title: this.titleForm,
     
    3332
    3433  public askQuestionEmit(): void {
    35     const body = new AskQuestionRequest(this.titleForm.value, this.textForm.value, this.categoriesForm.value);
    36     this.askQuestion.emit(body);
     34    this.askQuestion.emit(new AskQuestionRequest(this.titleForm.value, this.textForm.value, this.categoriesForm.value));
    3735  }
    3836}
Note: See TracChangeset for help on using the changeset viewer.