mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-08 07:45:32 +01:00
bugfix dismissing wrong status messages
This commit is contained in:
parent
8bf4241b16
commit
2fcf484229
1 changed files with 6 additions and 1 deletions
|
|
@ -169,7 +169,12 @@ export class ConsumerStatusService {
|
||||||
}
|
}
|
||||||
|
|
||||||
dismiss(status: FileStatus) {
|
dismiss(status: FileStatus) {
|
||||||
let index = this.consumerStatus.findIndex(s => s.filename == status.filename)
|
let index
|
||||||
|
if (status.taskId != null) {
|
||||||
|
index = this.consumerStatus.findIndex(s => s.taskId == status.taskId)
|
||||||
|
} else {
|
||||||
|
index = this.consumerStatus.findIndex(s => s.filename == status.filename)
|
||||||
|
}
|
||||||
|
|
||||||
if (index > -1) {
|
if (index > -1) {
|
||||||
this.consumerStatus.splice(index, 1)
|
this.consumerStatus.splice(index, 1)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue