mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-16 04:14:58 +02:00
Improve track order detection, allow for excluding audio files from tracklist
This commit is contained in:
parent
197012e662
commit
e566c6c9d5
10 changed files with 114 additions and 37 deletions
|
@ -9,7 +9,15 @@
|
|||
<script>
|
||||
export default {
|
||||
props: {
|
||||
value: Boolean
|
||||
value: Boolean,
|
||||
onColor: {
|
||||
type: String,
|
||||
default: 'success'
|
||||
},
|
||||
offColor: {
|
||||
type: String,
|
||||
default: 'primary'
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
toggleValue: {
|
||||
|
@ -21,12 +29,11 @@ export default {
|
|||
}
|
||||
},
|
||||
toggleColor() {
|
||||
return this.toggleValue ? 'bg-success' : 'bg-primary'
|
||||
return this.toggleValue ? `bg-${this.onColor}` : `bg-${this.offColor}`
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
clickToggle() {
|
||||
console.log('click toggle', this.toggleValue)
|
||||
this.toggleValue = !this.toggleValue
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue