Improve track order detection, allow for excluding audio files from tracklist

This commit is contained in:
Mark Cooper 2021-09-04 18:02:42 -05:00
parent 197012e662
commit e566c6c9d5
10 changed files with 114 additions and 37 deletions

View file

@ -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
}
}