mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-13 18:17:02 +01:00
Improved error notifications
This commit is contained in:
parent
0ef3a141a8
commit
423e0768f9
14 changed files with 296 additions and 260 deletions
|
|
@ -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)
|
||||
},
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue