Playlist: create navigation to the respective channel (#1347)
This commit is contained in:
parent
5ec5ef300f
commit
78b6adeb5e
|
@ -8,12 +8,14 @@
|
||||||
|
|
||||||
.playlistChannel {
|
.playlistChannel {
|
||||||
height: 70px;
|
height: 70px;
|
||||||
|
|
||||||
|
/* Indicates the box can be clicked to navigate */
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.playlistChannel img {
|
.playlistChannel img {
|
||||||
width: 70px;
|
width: 70px;
|
||||||
float: left;
|
float: left;
|
||||||
cursor: pointer;
|
|
||||||
border-radius: 200px 200px 200px 200px;
|
border-radius: 200px 200px 200px 200px;
|
||||||
-webkit-border-radius: 200px 200px 200px 200px;
|
-webkit-border-radius: 200px 200px 200px 200px;
|
||||||
}
|
}
|
||||||
|
@ -21,7 +23,6 @@
|
||||||
.playlistChannel h3 {
|
.playlistChannel h3 {
|
||||||
float: left;
|
float: left;
|
||||||
position: relative;
|
position: relative;
|
||||||
cursor: pointer;
|
|
||||||
width: 200px;
|
width: 200px;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
top: 5px;
|
top: 5px;
|
||||||
|
|
|
@ -76,6 +76,7 @@ export default Vue.extend({
|
||||||
this.title = this.data.title
|
this.title = this.data.title
|
||||||
this.channelName = this.data.channelName
|
this.channelName = this.data.channelName
|
||||||
this.channelThumbnail = this.data.channelThumbnail
|
this.channelThumbnail = this.data.channelThumbnail
|
||||||
|
this.channelId = this.data.channelId
|
||||||
this.uploadedTime = this.data.uploaded_at
|
this.uploadedTime = this.data.uploaded_at
|
||||||
this.description = this.data.description
|
this.description = this.data.description
|
||||||
this.infoSource = this.data.infoSource
|
this.infoSource = this.data.infoSource
|
||||||
|
@ -112,6 +113,10 @@ export default Vue.extend({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
goToChannel: function () {
|
||||||
|
this.$router.push({ path: `/channel/${this.channelId}` })
|
||||||
|
},
|
||||||
|
|
||||||
...mapActions([
|
...mapActions([
|
||||||
'openExternalLink'
|
'openExternalLink'
|
||||||
])
|
])
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
<hr>
|
<hr>
|
||||||
<div
|
<div
|
||||||
class="playlistChannel"
|
class="playlistChannel"
|
||||||
|
@click="goToChannel"
|
||||||
>
|
>
|
||||||
<img :src="channelThumbnail">
|
<img :src="channelThumbnail">
|
||||||
<h3>
|
<h3>
|
||||||
|
|
Loading…
Reference in New Issue