FEATURE: Highlight expired bookmark reminders (#15317)

The user can select what happens with a bookamrk after it expires. New
option allow bookmark's reminder to be kept even after it has expired.
After a bookmark's reminder notification is created, the reminder date
will be highlighted in red until the user resets the reminder date.
User can do that using the new Clear Reminder button from the dropdown.
This commit is contained in:
Bianca Nenciu
2022-03-08 19:44:18 +02:00
committed by GitHub
parent f5422f91aa
commit 6d422a8033
19 changed files with 173 additions and 64 deletions

View File

@ -68,6 +68,7 @@ class CurrentUserSerializer < BasicUserSerializer
:can_review,
:draft_count,
:default_calendar,
:bookmark_auto_delete_preference,
:pending_posts_count
delegate :user_stat, to: :object, private: true
@ -142,6 +143,10 @@ class CurrentUserSerializer < BasicUserSerializer
object.user_option.default_calendar
end
def bookmark_auto_delete_preference
object.user_option.bookmark_auto_delete_preference
end
def can_send_private_email_messages
scope.can_send_private_messages_to_email?
end