+
Auswahl Übung oder Vorlesung:
+
+
diff --git a/src/app/edit-task/edit-task.component.ts b/src/app/edit-task/edit-task.component.ts
index c5b4f52..c60fb21 100644
--- a/src/app/edit-task/edit-task.component.ts
+++ b/src/app/edit-task/edit-task.component.ts
@@ -12,7 +12,6 @@ import { Router } from '@angular/router';
templateUrl: './edit-task.component.html',
styleUrls: ['./edit-task.component.css']
})
-
export class EditTaskComponent implements OnInit {
@Input() task: Task_Interface = {
id: 0,
@@ -25,14 +24,17 @@ export class EditTaskComponent implements OnInit {
allocate: ['9b', '9a', 'Verena Steinmeier'],
subject: undefined,
materials: {},
- modelSolution: {}
+ model_solution: {},
+ uebung: true,
};
- preview: Boolean = false;
+ public buttonheader: string;
+
+ preview = false;
url = 'http://file.io'; // 'localhost:3001';
- showKatexInput: boolean = false;
+ showKatexInput = false;
input: HTMLInputElement;
@@ -40,13 +42,11 @@ export class EditTaskComponent implements OnInit {
percentCompleted = 0;
-
-
handleFileInput(filename) {
const that = this;
const fileToUpload = (filename === 'materials') ?
- (document.getElementById('materials') as HTMLInputElement).files :
- (document.getElementById('modelSolution') as HTMLInputElement).files;
+ (document.getElementById('materials') as HTMLInputElement).files :
+ (document.getElementById('model_solution') as HTMLInputElement).files;
console.log(fileToUpload);
if (fileToUpload.length > 0) {
const file = fileToUpload.item(0);
@@ -63,24 +63,29 @@ export class EditTaskComponent implements OnInit {
}
uploadWithProgress(formData: FormData): Observable