Set user title from the badge view (#5049)

* title info under notification

* create badge-title as component

* display available titles, close button

* remove visual feedback when grant new badge

* Made changes after review.

* Some minor fixes.
This commit is contained in:
Bianca Nenciu
2017-08-17 21:32:37 +01:00
committed by Sam
parent a83bd537f4
commit ac8bc04ad7
8 changed files with 115 additions and 30 deletions

View File

@@ -51,6 +51,7 @@ class BadgeGranter
data: { badge_id: @badge.id,
badge_name: @badge.display_name,
badge_slug: @badge.slug,
badge_title: @badge.allow_title,
username: @user.username }.to_json
)
user_badge.update_attributes notification_id: notification.id
@@ -327,6 +328,7 @@ class BadgeGranter
badge_id: badge.id,
badge_name: badge.display_name,
badge_slug: badge.slug,
badge_title: badge.allow_title,
username: row.username
}.to_json)
end