Feature: compact toasts (#4545)

This commit is contained in:
shamoon
2023-11-13 13:17:44 -08:00
committed by GitHub
parent facb7226fe
commit 90707d661b
9 changed files with 127 additions and 119 deletions

View File

@@ -80,9 +80,8 @@ export class AppComponent implements OnInit, OnDestroy {
)
) {
this.toastService.show({
title: $localize`Document added`,
content: $localize`Document ${status.filename} was added to Paperless-ngx.`,
delay: 10000,
content: $localize`Document ${status.filename} was added to paperless.`,
actionName: $localize`Open document`,
action: () => {
this.router.navigate(['documents', status.documentId])
@@ -90,9 +89,8 @@ export class AppComponent implements OnInit, OnDestroy {
})
} else {
this.toastService.show({
title: $localize`Document added`,
content: $localize`Document ${status.filename} was added to Paperless-ngx.`,
delay: 10000,
content: $localize`Document ${status.filename} was added to paperless.`,
})
}
}
@@ -121,9 +119,8 @@ export class AppComponent implements OnInit, OnDestroy {
)
) {
this.toastService.show({
title: $localize`New document detected`,
content: $localize`Document ${status.filename} is being processed by Paperless-ngx.`,
delay: 5000,
content: $localize`Document ${status.filename} is being processed by paperless.`,
})
}
})