mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: notification for vote plugin (#10384)
This must exist in core as we want to see a correct notification after disable of the voting plugin.
This commit is contained in:
parent
149801f99a
commit
fb9c2e5f89
@ -42,7 +42,8 @@ const REPLACEMENTS = {
|
|||||||
"notification.post_approved": "check",
|
"notification.post_approved": "check",
|
||||||
"notification.membership_request_accepted": "user-plus",
|
"notification.membership_request_accepted": "user-plus",
|
||||||
"notification.membership_request_consolidated": "users",
|
"notification.membership_request_consolidated": "users",
|
||||||
"notification.reaction": "bell"
|
"notification.reaction": "bell",
|
||||||
|
"notification.votes_released": "plus"
|
||||||
};
|
};
|
||||||
|
|
||||||
export function replaceIcon(source, destination) {
|
export function replaceIcon(source, destination) {
|
||||||
|
@ -112,6 +112,7 @@ class Notification < ActiveRecord::Base
|
|||||||
membership_request_consolidated: 23,
|
membership_request_consolidated: 23,
|
||||||
bookmark_reminder: 24,
|
bookmark_reminder: 24,
|
||||||
reaction: 25,
|
reaction: 25,
|
||||||
|
votes_released: 26,
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1957,6 +1957,7 @@ en:
|
|||||||
membership_request_consolidated: "%{count} open membership requests for '%{group_name}'"
|
membership_request_consolidated: "%{count} open membership requests for '%{group_name}'"
|
||||||
reaction: "<span>%{username}</span> %{description}"
|
reaction: "<span>%{username}</span> %{description}"
|
||||||
reaction_2: "<span>%{username}, %{username2}</span> %{description}"
|
reaction_2: "<span>%{username}, %{username2}</span> %{description}"
|
||||||
|
votes_released: "%{description} - completed"
|
||||||
|
|
||||||
group_message_summary:
|
group_message_summary:
|
||||||
one: "%{count} message in your %{group_name} inbox"
|
one: "%{count} message in your %{group_name} inbox"
|
||||||
@ -1999,6 +2000,7 @@ en:
|
|||||||
post_approved: "post approved"
|
post_approved: "post approved"
|
||||||
membership_request_consolidated: "new membership requests"
|
membership_request_consolidated: "new membership requests"
|
||||||
reaction: "new reaction"
|
reaction: "new reaction"
|
||||||
|
votes_released: "Vote was released"
|
||||||
|
|
||||||
upload_selector:
|
upload_selector:
|
||||||
title: "Add an image"
|
title: "Add an image"
|
||||||
|
Loading…
Reference in New Issue
Block a user