]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Suggestions error use new error toast
authorshamoon <4887959+shamoon@users.noreply.github.com>
Sat, 20 May 2023 17:15:53 +0000 (10:15 -0700)
committershamoon <4887959+shamoon@users.noreply.github.com>
Sat, 20 May 2023 17:15:53 +0000 (10:15 -0700)
src-ui/src/app/components/document-detail/document-detail.component.ts

index 60b1ab94bba6587f850ece0f8a923250c93e1cb5..b08261ca038b2d42b3ad65bca4168852f6a157ff 100644 (file)
@@ -394,9 +394,9 @@ export class DocumentDetailComponent
           error: (error) => {
             this.suggestions = null
             this.toastService.showError(
-              $localize`Error retrieving suggestions: ${JSON.stringify(
-                error
-              ).slice(0, 500)}`
+              $localize`Error retrieving suggestions.`,
+              10000,
+              error
             )
           },
         })