toast changes

This commit is contained in:
Jonas Winkler
2020-10-29 14:35:36 +01:00
parent 689b0db1a8
commit a89eaafed7
6 changed files with 35 additions and 17 deletions

View File

@@ -66,7 +66,7 @@ export abstract class EditDialogComponent<T extends ObjectWithId> implements OnI
this.activeModal.close()
this.success.emit(result)
}, error => {
this.toastService.showToast(Toast.make("Error", `Could not save ${this.entityName}: ${error.error.name}`))
this.toastService.showToast(Toast.makeError(`Could not save ${this.entityName}: ${error.error.name}`))
})
}