Hide Views and Post Date on Premium content in a search

This commit is contained in:
Preston 2019-03-01 19:26:14 -05:00
parent 0dc5caaf65
commit dd7bbda0cb
2 changed files with 2 additions and 3 deletions

View File

@ -170,8 +170,6 @@ function displayVideo(videoData, listType = '') {
}
}
//const searchMenu = $('#videoListContainer').html();
// Include a remove icon in the list if the application is displaying the history list or saved videos.
video.deleteHtml = () => {
switch (listType) {
@ -195,6 +193,7 @@ function displayVideo(videoData, listType = '') {
video.channelId = videoData.authorId;
video.description = videoData.description;
video.isVideo = true;
video.premium = videoData.premium;
switch (listType) {
case 'subscriptions':

View File

@ -29,7 +29,7 @@
</div>
<p v-on:click='play(video.id)' class='videoTitle'>{{video.title}}</p>
<p v-on:click='channel(video.channelId)' class='channelName'>{{video.channelName}}</p>
<p v-on:click='play(video.id)' class='videoViews'>{{video.views}} {{video.viewText}} - {{video.publishedDate}}</p>
<p v-if='!video.premium' v-on:click='play(video.id)' class='videoViews'>{{video.views}} {{video.viewText}} - {{video.publishedDate}}</p>
<p v-on:click='play(video.id)' class='videoDescription'>{{video.description}}</p>
<p v-on:click='play(video.id)' class='live'>{{video.liveText}}</p>
</div>