mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-12 19:17:13 +00:00
Improved error notifications
This commit is contained in:
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)
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user