Improved error notifications

This commit is contained in:
shamoon committed 2023-09-08 11:49:56 -07:00
1 parent 0ef3a141a8
commit 423e0768f9
14 files changed
+296 -260

No files matched your search

@@ -63,11 +63,7 @@ export class DocumentNotesComponent extends ComponentWithPermissions {
},
error: (e) => {
this.networkActive = false
this.toastService.showError(
$localize`Error saving note`,
10000,
JSON.stringify(e)
)
this.toastService.showError($localize`Error saving note`, e)
},
})
}
@@ -81,9 +77,7 @@ export class DocumentNotesComponent extends ComponentWithPermissions {
},
error: (e) => {
this.networkActive = false
this.toastService.showError(
$localize`Error deleting note: ${e.toString()}`
)
this.toastService.showError($localize`Error deleting note`, e)
},
})
}