Project

General

Profile

« Previous | Next » 

Revision 59cdda31

Added by Gilad Lekner about 6 years ago

fixes #23357 - Refactor Notification Drawer from patternfly-react

View differences:

app/controllers/notification_recipients_controller.rb
head (count.zero? ? :not_modified : :ok)
end
def destroy_group
count = NotificationRecipient.
joins(:notification_blueprint).
where(user_id: User.current.id,
notification_blueprints: { group: params[:group]}).
delete_all
logger.debug("deleted #{count} notification recipents for group #{params[:group]}")
UINotifications::CacheHandler.new(User.current.id).clear unless count.zero?
head (count.zero? ? :not_modified : :ok)
end
private
def require_login

Also available in: Unified diff