2018-08-11 01:47:10 -04:00
|
|
|
<template>
|
2018-12-08 02:48:15 -05:00
|
|
|
<section class="section fd-remove-padding-bottom" v-if="spotify_enabled">
|
2018-08-11 01:47:10 -04:00
|
|
|
<div class="container">
|
|
|
|
<div class="columns is-centered">
|
|
|
|
<div class="column is-four-fifths">
|
|
|
|
<div class="tabs is-centered is-small is-toggle is-toggle-rounded">
|
|
|
|
<ul>
|
|
|
|
<router-link tag="li" :to="{ path: '/search/library', query: $route.query }" active-class="is-active">
|
|
|
|
<a>
|
|
|
|
<span class="icon is-small"><i class="mdi mdi-library-books"></i></span>
|
|
|
|
<span class="">Library</span>
|
|
|
|
</a>
|
|
|
|
</router-link>
|
|
|
|
<router-link tag="li" :to="{ path: '/search/spotify', query: $route.query }" active-class="is-active">
|
|
|
|
<a>
|
|
|
|
<span class="icon is-small"><i class="mdi mdi-spotify"></i></span>
|
|
|
|
<span class="">Spotify</span>
|
|
|
|
</a>
|
|
|
|
</router-link>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
name: 'TabsSearch',
|
|
|
|
|
|
|
|
computed: {
|
|
|
|
spotify_enabled () {
|
|
|
|
return this.$store.state.spotify.webapi_token_valid
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
</style>
|