some changes

This commit is contained in:
jonaswinkler
2021-01-04 23:05:16 +01:00
parent 9f9581e1f8
commit d153672f0d
6 changed files with 356 additions and 76 deletions

View File

@@ -31,7 +31,7 @@ export class AppComponent implements OnInit, OnDestroy {
this.consumerStatusService.connect()
this.successSubscription = this.consumerStatusService.onDocumentConsumptionFinished().subscribe(status => {
this.toastService.showToast({title: "Document added", content: `Document ${status.filename} was added to paperless.`, actionName: "Open document", action: () => {
this.toastService.show({title: "Document added", delay: 10000, content: `Document ${status.filename} was added to paperless.`, actionName: "Open document", action: () => {
this.router.navigate(['documents', status.document_id])
}})
})