mirror of
https://github.com/VueTubeApp/VueTube
synced 2024-11-23 11:45:15 +00:00
Merge pull request #126 from raluvy95/patch-1
Added comma into numbers.
This commit is contained in:
commit
1b58fa3809
1 changed files with 8 additions and 4 deletions
|
@ -71,20 +71,24 @@ export default {
|
|||
this.vidSrc = result.streamingData.formats[result.streamingData.formats.length-1].url
|
||||
this.title = result.videoDetails.title
|
||||
this.description = result.videoDetails.shortDescription;
|
||||
this.views = result.videoDetails.viewCount;
|
||||
this.views = result.videoDetails.viewCount.toLocaleString();
|
||||
});
|
||||
|
||||
|
||||
this.$youtube.getRemainingVideoInfo(this.$route.query.v, (data) => {
|
||||
this.likes = data.likes,
|
||||
this.likes = data.likes.toLocaleString();
|
||||
this.uploaded = data.uploadDate;
|
||||
|
||||
this.interactions[0].value = data.likes;
|
||||
});
|
||||
|
||||
this.$youtube.getReturnYoutubeDislike(this.$route.query.v, (data) => {
|
||||
this.dislikes = data.dislikes;
|
||||
this.interactions[1].value = data.dislikes;
|
||||
|
||||
|
||||
|
||||
this.dislikes = data.dislikes.toLocaleString();
|
||||
this.interactions[1].value = data.dislikes.toLocaleString();
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue