rework of the front end components

This commit is contained in:
jonaswinkler
2021-01-26 00:51:45 +01:00
parent 339e96b63c
commit ede3bd1391
5 changed files with 137 additions and 56 deletions

View File

@@ -32,7 +32,7 @@ export class AppComponent implements OnInit, OnDestroy {
this.successSubscription = this.consumerStatusService.onDocumentConsumptionFinished().subscribe(status => {
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])
this.router.navigate(['documents', status.documentId])
}})
})
@@ -42,6 +42,4 @@ export class AppComponent implements OnInit, OnDestroy {
}
}