mirror of https://github.com/FreeTubeApp/FreeTube
Hide Views and Post Date on Premium content in a search
This commit is contained in:
parent
0dc5caaf65
commit
dd7bbda0cb
|
@ -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.
|
// Include a remove icon in the list if the application is displaying the history list or saved videos.
|
||||||
video.deleteHtml = () => {
|
video.deleteHtml = () => {
|
||||||
switch (listType) {
|
switch (listType) {
|
||||||
|
@ -195,6 +193,7 @@ function displayVideo(videoData, listType = '') {
|
||||||
video.channelId = videoData.authorId;
|
video.channelId = videoData.authorId;
|
||||||
video.description = videoData.description;
|
video.description = videoData.description;
|
||||||
video.isVideo = true;
|
video.isVideo = true;
|
||||||
|
video.premium = videoData.premium;
|
||||||
|
|
||||||
switch (listType) {
|
switch (listType) {
|
||||||
case 'subscriptions':
|
case 'subscriptions':
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
</div>
|
</div>
|
||||||
<p v-on:click='play(video.id)' class='videoTitle'>{{video.title}}</p>
|
<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='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='videoDescription'>{{video.description}}</p>
|
||||||
<p v-on:click='play(video.id)' class='live'>{{video.liveText}}</p>
|
<p v-on:click='play(video.id)' class='live'>{{video.liveText}}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue