diff --git a/src/app/components/creator/content-creator/content-creator.component.html b/src/app/components/creator/content-creator/content-creator.component.html index be3ab8716491988ff5f8625c04d88e9e5a9b40af..0f1424a34d3f445d66885a4ccff91d6f0128f2b9 100644 --- a/src/app/components/creator/content-creator/content-creator.component.html +++ b/src/app/components/creator/content-creator/content-creator.component.html @@ -1,15 +1,15 @@ <form> <mat-form-field class="input-block"> - <input matInput #subject [(ngModel)]="content.subject" placeholder="{{'content.subject' | translate}}" value="TEEEEEST" name="subject"> + <input matInput #subject placeholder="{{'content.subject' | translate}}" name="subject"> </mat-form-field> <app-markdown-toolbar textareaId="content-text-body"></app-markdown-toolbar> <mat-form-field class="input-block"> - <textarea matInput #body id="content-text-body" [(ngModel)]="content.body" placeholder="{{'content.body' | translate}}" name="body" + <textarea matInput #body placeholder="{{'content.body' | translate}}" name="body" matTextareaAutosize matAutosizeMinRows="3" matAutosizeMaxRows="8"></textarea> </mat-form-field> <markdown [data]="content.body"></markdown> <mat-form-field> - <input matInput #group [(ngModel)]="content.groups[0]" matInput [formControl]="myControl" [matAutocomplete]="auto" + <input matInput #group matInput [formControl]="myControl" [matAutocomplete]="auto" value={{lastCollection}} placeholder="{{'content.collection' | translate}}"/> <mat-autocomplete #auto="matAutocomplete"> <mat-option *ngFor="let collection of filteredOptions | async" [value]="collection"> diff --git a/src/app/components/creator/content-text-creator/content-text-creator.component.ts b/src/app/components/creator/content-text-creator/content-text-creator.component.ts index b9e25262dea2c1f464a49de4108ba411ada71fd2..f7127dcf8d84f97ca89642f2dc4d8a6191008dd1 100644 --- a/src/app/components/creator/content-text-creator/content-text-creator.component.ts +++ b/src/app/components/creator/content-text-creator/content-text-creator.component.ts @@ -51,7 +51,6 @@ export class ContentTextCreatorComponent implements OnInit { } submitContent() { - console.log(this.contentCol) this.contentService.addContent(new ContentText( '1', '1', diff --git a/src/app/components/shared/content-list/content-list.component.ts b/src/app/components/shared/content-list/content-list.component.ts index 348f87a4fe4f9f6e64e0a2b4f4fc3448418f4f7b..fe84073e7f7a4b95f9f3976d8cd3d4d5f5e8541c 100644 --- a/src/app/components/shared/content-list/content-list.component.ts +++ b/src/app/components/shared/content-list/content-list.component.ts @@ -1,4 +1,4 @@ -import { Component, Input, OnInit } from '@angular/core'; +import { Component, OnInit } from '@angular/core'; import { ContentService } from '../../../services/http/content.service'; import { Content } from '../../../models/content'; import { ActivatedRoute } from '@angular/router'; @@ -13,8 +13,8 @@ import { ContentTextCreatorComponent } from '../../creator/content-text-creator/ import { NotificationService } from '../../../services/util/notification.service'; import { Room } from '../../../models/room'; import { RoomService } from '../../../services/http/room.service'; -import {TranslateService} from "@ngx-translate/core"; -import {LanguageService} from "../../../services/util/language.service"; +import { TranslateService } from '@ngx-translate/core'; +import { LanguageService } from '../../../services/util/language.service'; class ContentGroup { name: string;