Prepare UI for notification settings
This commit is contained in:
parent
d55ade1686
commit
ba59912072
8 changed files with 81 additions and 20 deletions
|
@ -3,9 +3,11 @@ class NotificationsController < ApplicationController
|
|||
|
||||
def show
|
||||
@notification = current_user.notification
|
||||
@projects = current_user.authorized_projects
|
||||
end
|
||||
|
||||
def update
|
||||
@notification = current_user.notification
|
||||
current_user.notification_level = params[:notification_level]
|
||||
@saved = current_user.save
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue