2021-08-18 00:01:11 +02:00
|
|
|
<template>
|
2022-03-14 01:34:31 +01:00
|
|
|
<div class="page" :class="streamLibraryItem ? 'streaming' : ''"></div>
|
2021-08-18 00:01:11 +02:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
2021-10-05 05:11:42 +02:00
|
|
|
asyncData({ redirect, store }) {
|
2022-05-15 00:23:22 +02:00
|
|
|
if (!store.state.libraries.currentLibraryId) {
|
|
|
|
return redirect('/oops?message=No libraries')
|
|
|
|
}
|
2021-10-16 03:31:00 +02:00
|
|
|
redirect(`/library/${store.state.libraries.currentLibraryId}`)
|
2021-10-05 05:11:42 +02:00
|
|
|
},
|
2021-09-05 20:21:02 +02:00
|
|
|
data() {
|
|
|
|
return {}
|
|
|
|
},
|
2021-08-18 00:01:11 +02:00
|
|
|
computed: {
|
2022-03-14 01:34:31 +01:00
|
|
|
streamLibraryItem() {
|
|
|
|
return this.$store.state.streamLibraryItem
|
2021-08-18 00:01:11 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {},
|
|
|
|
mounted() {},
|
|
|
|
beforeDestroy() {}
|
|
|
|
}
|
|
|
|
</script>
|