From 72f22c8898c1e56f726ed3b4ab610f6fb072a7ec Mon Sep 17 00:00:00 2001 From: Zeeshan Khan Date: Sat, 26 Dec 2020 19:25:29 +0530 Subject: [PATCH] hiding ranks from profile views --- src/components/Leaderboard.vue | 6 ++---- src/components/ProfileAudience.vue | 12 +++++++----- src/components/ProfileFilmmaker.vue | 5 ++++- src/components/submit/ValueProps.vue | 2 +- 4 files changed, 14 insertions(+), 11 deletions(-) diff --git a/src/components/Leaderboard.vue b/src/components/Leaderboard.vue index f680744..a22092f 100644 --- a/src/components/Leaderboard.vue +++ b/src/components/Leaderboard.vue @@ -53,7 +53,7 @@ {{ my_profile.score }} - #{{ my_profile.rank }} + #{{ my_profile.creator_rank || my_profile.curator_rank }} {{ user.score }} - - {{ user.rank == -1 ? "--" : `#${user.rank}` }} - + -- diff --git a/src/components/ProfileAudience.vue b/src/components/ProfileAudience.vue index de105d3..d8788a9 100644 --- a/src/components/ProfileAudience.vue +++ b/src/components/ProfileAudience.vue @@ -35,7 +35,7 @@
- {{ get_rank() }} + {{ rank_txt }}
rank
@@ -202,6 +202,12 @@ export default { watchlist: (state) => state.watchlist, my_recommends: (state) => state.recommends, }), + rank_txt() { + return "-"; + // TODO: add it back when screening starts + //eslint-disable-next-line + return this.profile.curator_rank == -1 ? "-" : this.profile.curator_rank; + }, engagement() { // 6000 is the max score we are aiming at, as of now var score = this.my_profile.engagement_score / 6000; @@ -280,10 +286,6 @@ export default { }; return level_map[this.profile.level]; }, - get_rank() { - if (this.profile.rank != -1) return this.profile.rank; - else return "-"; - }, get_review_count() { //TODO: fetch top reviews that I have given to movies return "-"; diff --git a/src/components/ProfileFilmmaker.vue b/src/components/ProfileFilmmaker.vue index cd6c144..e215a7a 100644 --- a/src/components/ProfileFilmmaker.vue +++ b/src/components/ProfileFilmmaker.vue @@ -196,7 +196,10 @@ export default { return this.profile.id == this.my_profile.id; }, rank_txt() { - return this.profile.rank == -1 ? "-" : this.profile.rank; + return "-"; + // TODO: add it back when screening starts + //eslint-disable-next-line + return this.profile.creator_rank == -1 ? "-" : this.profile.creator_rank; }, following_actions() { if (this.is_viewer_profile) diff --git a/src/components/submit/ValueProps.vue b/src/components/submit/ValueProps.vue index 29d6e44..1d69618 100644 --- a/src/components/submit/ValueProps.vue +++ b/src/components/submit/ValueProps.vue @@ -15,7 +15,7 @@
-
+
{{ rs }} 399 per Standard Submision