0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-27 05:33:04 +00:00

Merge pull request #207 from etekweb/views-likes-commas

Fixed comma separation on view/like counters
This commit is contained in:
Kenny 2022-03-29 09:57:00 -04:00 committed by GitHub
commit 9a824998ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -183,10 +183,10 @@ export default {
//--- Content Stuff ---//
this.title = result.title;
this.description = result.renderedData.description; // While this works, I do recommend using the rendered description instead in the future as there are some things a pure string wouldn't work with
this.views = result.metadata.viewCount.toLocaleString();
this.views = parseInt(result.metadata.viewCount).toLocaleString();
this.likes = result.metadata.likes.toLocaleString();
this.uploaded = result.metadata.uploadDate;
this.interactions[0].value = result.metadata.likes;
this.interactions[0].value = result.metadata.likes.toLocaleString();
this.loaded = true;
this.recommends = result.renderedData.recommendations;