mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user