Improved error notifications

This commit is contained in:
shamoon
2023-08-23 23:50:54 -07:00
parent e6ca6b6f7a
commit cca465aa00
14 changed files with 296 additions and 260 deletions

View File

@@ -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)
},
})
}