mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-02-01 07:49:40 +00:00
Merge pull request #4952 from sir-wilhelm/use-localized-text-for-selected-filter
Some checks are pending
CodeQL / Analyze (push) Waiting to run
Run Component Tests / Run Component Tests (push) Waiting to run
Build and Push Docker Image / build (push) Waiting to run
Integration Test / build and test (push) Waiting to run
Run Unit Tests / Run Unit Tests (push) Waiting to run
Some checks are pending
CodeQL / Analyze (push) Waiting to run
Run Component Tests / Run Component Tests (push) Waiting to run
Build and Push Docker Image / build (push) Waiting to run
Integration Test / build and test (push) Waiting to run
Run Unit Tests / Run Unit Tests (push) Waiting to run
Display localized/styled text for selected filter.
This commit is contained in:
commit
8498378bca
1 changed files with 12 additions and 0 deletions
|
|
@ -338,6 +338,18 @@ export default {
|
|||
const series = this.series.find((se) => se.id == decoded)
|
||||
if (series) filterValue = series.name
|
||||
}
|
||||
} else if (parts[0] === 'progress') {
|
||||
const item = this.progress.find((p) => p.id == decoded)
|
||||
if (item) filterValue = item.name
|
||||
} else if (parts[0] === 'tracks') {
|
||||
const item = this.tracks.find((t) => t.id == decoded)
|
||||
if (item) filterValue = item.name
|
||||
} else if (parts[0] === 'ebooks') {
|
||||
const item = this.ebooks.find((e) => e.id == decoded)
|
||||
if (item) filterValue = item.name
|
||||
} else if (parts[0] === 'missing') {
|
||||
const item = this.missing.find((m) => m.id == decoded)
|
||||
if (item) filterValue = item.name
|
||||
} else {
|
||||
filterValue = decoded
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue