Skip to content

Commit

Permalink
Add user notification preference to disable forum/email notifs for re…
Browse files Browse the repository at this point in the history
…minders

Closes #59
  • Loading branch information
dsevillamartin committed Mar 23, 2022
1 parent 466c1d0 commit 456c1b8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions js/src/forum/extend/extendNotifications.ts
Expand Up @@ -15,5 +15,10 @@ export default function () {
icon: 'fas fa-check',
label: app.translator.trans('fof-best-answer.forum.notification.preferences.best_answer_in_discussion'),
});
items.add('selectBestAnswer', {
name: 'selectBestAnswer',
icon: 'fas fa-stopwatch',
label: app.translator.trans('fof-best-answer.forum.notification.preferences.select_best_answer'),
});
});
}
5 changes: 3 additions & 2 deletions resources/locale/en.yml
Expand Up @@ -45,8 +45,9 @@ fof-best-answer:
awarded: Your post was set as the best answer by {username}

preferences:
awarded_best_answer: When someone sets my post as a best answer
best_answer_in_discussion: When a best answer is set in a discussion I participated in
awarded_best_answer: Someone sets my post as a best answer
best_answer_in_discussion: A best answer is set in a discussion I participated in
select_best_answer: An automated reminder to select a best answer in a discussion I started

index:
ask_question: Ask a Question
Expand Down

0 comments on commit 456c1b8

Please sign in to comment.