From 88be3525b5e1c14cfc3b6045e003a99c739ac2a9 Mon Sep 17 00:00:00 2001 From: Garret Alfert Date: Wed, 3 Apr 2019 01:34:39 +0200 Subject: [PATCH] Fix highlighting of current user in contributor list Fixes #72 Introduces a helper to determine if a contributor is the current user. --- app/components/contributor-list/template.hbs | 4 +-- app/helpers/is-current-user.js | 16 +++++++++ app/models/contributor.js | 3 -- tests/unit/helpers/is-current-user-test.js | 38 ++++++++++++++++++++ 4 files changed, 56 insertions(+), 5 deletions(-) create mode 100644 app/helpers/is-current-user.js create mode 100644 tests/unit/helpers/is-current-user-test.js diff --git a/app/components/contributor-list/template.hbs b/app/components/contributor-list/template.hbs index f529eb9..ffe226c 100644 --- a/app/components/contributor-list/template.hbs +++ b/app/components/contributor-list/template.hbs @@ -1,6 +1,6 @@ {{#each contributors as |contributor|}} - + {{contributor.name}} @@ -10,7 +10,7 @@ ₭S - +