mirror of
https://github.com/Xevion/the-office.git
synced 2025-12-16 10:13:35 -06:00
add router link via caret right icon
This commit is contained in:
@@ -9,7 +9,13 @@
|
||||
<b-img src="https://via.placeholder.com/150"></b-img>
|
||||
</b-col>
|
||||
<b-col>
|
||||
<h4>{{ episode.title }}</h4>
|
||||
<h4>
|
||||
{{ episode.title }}
|
||||
<router-link class="no-link"
|
||||
:to="getEpisodeRoute(season.season_id, episode.episode_id)">
|
||||
<b-icon class="h6" icon="caret-right-fill"></b-icon>
|
||||
</router-link>
|
||||
</h4>
|
||||
<p class="pl-3">{{ episode.description }}</p>
|
||||
</b-col>
|
||||
</b-row>
|
||||
@@ -19,8 +25,22 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style lang="css">
|
||||
h4 .b-icon {
|
||||
font-size: 0.85rem;
|
||||
vertical-align: middle !important;
|
||||
position: relative;
|
||||
top: 3px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
methods: {
|
||||
getEpisodeRoute(s, e) {
|
||||
return {name: 'Episode', params: {season: s, episode: e}}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
breadcrumbs() {
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user