From ea719f2393c06d461ec45249d3b1d58deba77d14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de> Date: Mon, 15 Oct 2018 14:15:16 +0200 Subject: [PATCH] Adjust content-creation --- .../content-text-creator/content-text-creator.component.html | 4 ++-- .../content-text-creator/content-text-creator.component.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/components/fragments/content-text-creator/content-text-creator.component.html b/src/app/components/fragments/content-text-creator/content-text-creator.component.html index 6733345e9..c34b1f785 100644 --- a/src/app/components/fragments/content-text-creator/content-text-creator.component.html +++ b/src/app/components/fragments/content-text-creator/content-text-creator.component.html @@ -9,8 +9,8 @@ </mat-form-field> <markdown [data]="content.body"></markdown> <mat-form-field> - <input matInput #group type="text" matInput [formControl]="myControl" [matAutocomplete]="auto" - placeholder={{lastCollection}}/> + <input matInput #group matInput [formControl]="myControl" [matAutocomplete]="auto" + value={{lastCollection}} placeholder="Collection"/> <mat-autocomplete #auto="matAutocomplete"> <mat-option *ngFor="let collection of filteredOptions | async" [value]="collection"> {{collection}} diff --git a/src/app/components/fragments/content-text-creator/content-text-creator.component.ts b/src/app/components/fragments/content-text-creator/content-text-creator.component.ts index ffa9ca3e3..957194e5f 100644 --- a/src/app/components/fragments/content-text-creator/content-text-creator.component.ts +++ b/src/app/components/fragments/content-text-creator/content-text-creator.component.ts @@ -84,6 +84,7 @@ export class ContentTextCreatorComponent implements OnInit { this.notificationService.show('No empty fields allowed. Please check subject and body.'); return; } + sessionStorage.setItem('collection', group); this.resetAfterSubmit(); } -- GitLab