Skip to content
Snippets Groups Projects
Commit 95694f33 authored by Lukas Mauß's avatar Lukas Mauß
Browse files

Fix content-edit-dialog

parent 2cc9f90c
No related merge requests found
......@@ -32,6 +32,6 @@ export class ContentEditComponent implements OnInit {
}
onNoClick(): void {
this.dialogRef.close();
this.dialogRef.close('abort');
}
}
......@@ -112,7 +112,7 @@ export class ContentListComponent implements OnInit {
deleteContent(delContent: Content) {
const index = this.findIndexOfSubject(delContent.subject);
this.contentBackup = delContent;
this.createChoiceContentBackup(delContent as ContentChoice);
const dialogRef = this.dialog.open(ContentDeleteComponent, {
width: '400px'
});
......@@ -142,7 +142,7 @@ export class ContentListComponent implements OnInit {
updateContentChanges(index: number, action: string) {
if (!action) {
this.contents[index] = this.contentBackup;
this.contents[index] = this.contentCBackup;
} else {
switch (action.valueOf()) {
case 'delete':
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment