mirror of
https://github.com/mmjee/Piped-Material.git
synced 2024-12-06 19:26:36 +01:00
Fix autoplay next video
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
:video="video"
|
||||
:skip-to-time="'t' in $route.query ? Number($route.query.t) : null"
|
||||
:sponsors="sponsors"
|
||||
:selectedAutoPlay="$store.getters['prefs/getPreferenceBoolean']('autoplay')"
|
||||
:selectedAutoPlay="isAutoplayEnabled"
|
||||
:selectedAutoLoop="selectedAutoLoop"
|
||||
@videoEnded="videoEnded"
|
||||
/>
|
||||
@@ -70,7 +70,7 @@
|
||||
</div>
|
||||
<div>
|
||||
<!-- TODO translate -->
|
||||
<v-checkbox dense :value="isAutoplayEnabled" @change="onAutoplayChg" label="Autoplay next video" />
|
||||
<v-checkbox dense :value="isAutoplayEnabled" @change="onAutoplayChg" label="Autoplay Next Video" />
|
||||
<v-checkbox dense v-model="selectedAutoLoop" label="Loop this video" />
|
||||
</div>
|
||||
</v-card-text>
|
||||
@@ -306,7 +306,7 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
isAutoplayEnabled () {
|
||||
return this.$store.getters['prefs/getPreferenceBoolean']('autoplay')
|
||||
return this.$store.getters['prefs/getPreferenceBoolean']('autoplay', false)
|
||||
}
|
||||
},
|
||||
components: {
|
||||
|
||||
@@ -6,6 +6,7 @@ const PrefsStore = {
|
||||
// Declaring boolean values here because v-simple-checkbox has a bug (???) which renders it unable to have internal state
|
||||
prefs: {
|
||||
playerAutoplay: true,
|
||||
autoplay: false,
|
||||
listen: false
|
||||
}
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user