mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-12 17:47:08 +01:00
better toasts
This commit is contained in:
parent
27666da4e9
commit
bd3a2306d6
5 changed files with 23 additions and 32 deletions
|
|
@ -81,7 +81,7 @@ export class DocumentListComponent implements OnInit {
|
|||
|
||||
saveViewConfig() {
|
||||
this.savedViewService.update(this.list.savedView).subscribe(result => {
|
||||
this.toastService.showToast(Toast.make("Information", $localize`View "${this.list.savedView.name}" saved successfully.`))
|
||||
this.toastService.showInfo($localize`View "${this.list.savedView.name}" saved successfully.`)
|
||||
})
|
||||
|
||||
}
|
||||
|
|
@ -100,7 +100,7 @@ export class DocumentListComponent implements OnInit {
|
|||
}
|
||||
this.savedViewService.create(savedView).subscribe(() => {
|
||||
modal.close()
|
||||
this.toastService.showToast(Toast.make("Information", $localize`View "${savedView.name}" created successfully.`))
|
||||
this.toastService.showInfo($localize`View "${savedView.name}" created successfully.`)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue