2018-10-26 11:17:18 -04:00
|
|
|
<template>
|
2018-12-08 02:48:15 -05:00
|
|
|
<div class="media" :id="'index_' + anchor">
|
2018-10-26 11:17:18 -04:00
|
|
|
<div class="media-content fd-has-action is-clipped" v-on:click="open_genre">
|
|
|
|
<h1 class="title is-6">{{ genre.name }}</h1>
|
|
|
|
</div>
|
|
|
|
<div class="media-right">
|
2018-12-15 03:56:09 -05:00
|
|
|
<slot name="actions"></slot>
|
2018-10-26 11:17:18 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
2018-12-15 03:56:09 -05:00
|
|
|
name: 'ListItemGenre',
|
|
|
|
components: {},
|
2018-10-26 11:17:18 -04:00
|
|
|
|
2018-12-08 02:48:15 -05:00
|
|
|
props: [ 'genre', 'anchor' ],
|
2018-10-26 11:17:18 -04:00
|
|
|
|
|
|
|
methods: {
|
|
|
|
open_genre: function () {
|
|
|
|
this.show_details_modal = false
|
|
|
|
this.$router.push({ name: 'Genre', params: { genre: this.genre.name } })
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
</style>
|