Skip to content

Commit

Permalink
Hide Views and Post Date on Premium content in a search
Browse files Browse the repository at this point in the history
  • Loading branch information
PrestonN committed Mar 2, 2019
1 parent 0dc5caa commit dd7bbda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/js/videos.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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':
Expand Down
2 changes: 1 addition & 1 deletion src/templates/videoTemplate.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit dd7bbda

Please sign in to comment.