Improve frontend error handling

This commit is contained in:
shamoon
2023-05-17 12:46:04 -07:00
parent c12c7c23fb
commit 4e295f0c71
7 changed files with 274 additions and 275 deletions

View File

@@ -38,6 +38,9 @@ export abstract class EditDialogComponent<
@Output()
succeeded = new EventEmitter()
@Output()
failed = new EventEmitter()
networkActive = false
closeEnabled = false
@@ -141,7 +144,7 @@ export abstract class EditDialogComponent<
error: (error) => {
this.error = error.error
this.networkActive = false
this.succeeded.next(error)
this.failed.next(error)
},
})
}