diff options
Diffstat (limited to 'app/controllers/notification_settings_controller.rb')
-rw-r--r-- | app/controllers/notification_settings_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/notification_settings_controller.rb b/app/controllers/notification_settings_controller.rb index 43c4f4d220e..2a2e8af35a7 100644 --- a/app/controllers/notification_settings_controller.rb +++ b/app/controllers/notification_settings_controller.rb @@ -17,7 +17,7 @@ class NotificationSettingsController < ApplicationController @saved = @notification_setting.update(notification_setting_params_for(@notification_setting.source)) if params[:hide_label].present? - btn_class = params[:project_id].present? ? 'btn-xs' : '' + btn_class = params[:project_id].present? ? "btn-xs" : "" render_response("shared/notifications/_new_button", btn_class) else render_response @@ -45,7 +45,7 @@ class NotificationSettingsController < ApplicationController def render_response(response_template = "shared/notifications/_button", btn_class = nil) render json: { html: view_to_html_string(response_template, notification_setting: @notification_setting, btn_class: btn_class), - saved: @saved + saved: @saved, } end |