mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-11-04 03:17:00 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			533 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			533 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
<template>
 | 
						|
  <div class="page" :class="streamLibraryItem ? 'streaming' : ''"></div>
 | 
						|
</template>
 | 
						|
 | 
						|
<script>
 | 
						|
export default {
 | 
						|
  asyncData({ redirect, store }) {
 | 
						|
    if (!store.state.libraries.currentLibraryId) {
 | 
						|
      return redirect('/oops?message=No libraries')
 | 
						|
    }
 | 
						|
    redirect(`/library/${store.state.libraries.currentLibraryId}`)
 | 
						|
  },
 | 
						|
  data() {
 | 
						|
    return {}
 | 
						|
  },
 | 
						|
  computed: {
 | 
						|
    streamLibraryItem() {
 | 
						|
      return this.$store.state.streamLibraryItem
 | 
						|
    }
 | 
						|
  },
 | 
						|
  methods: {},
 | 
						|
  mounted() {},
 | 
						|
  beforeDestroy() {}
 | 
						|
}
 | 
						|
</script>
 |