diff options
author | Mike Greiling <mike@pixelcog.com> | 2016-12-09 23:30:54 -0600 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2016-12-09 23:30:54 -0600 |
commit | 69ffa81424e16a337b4c39d2cb9c0dff8b92f71b (patch) | |
tree | 5ee74a3b651d6a57dbd46966ac8f6ee7cb50121b | |
parent | 3f768f9a14ad90bbd79d384e3c287db4feea3e35 (diff) | |
download | gitlab-ce-69ffa81424e16a337b4c39d2cb9c0dff8b92f71b.tar.gz |
fix alignment for notification settings ajax response
-rw-r--r-- | app/controllers/notification_settings_controller.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/controllers/notification_settings_controller.rb b/app/controllers/notification_settings_controller.rb index 8ec4bb1233f..160259626d6 100644 --- a/app/controllers/notification_settings_controller.rb +++ b/app/controllers/notification_settings_controller.rb @@ -37,7 +37,11 @@ class NotificationSettingsController < ApplicationController def render_response render json: { - html: view_to_html_string("shared/notifications/_button", notification_setting: @notification_setting), + html: view_to_html_string( + "shared/notifications/_button", + notification_setting: @notification_setting, + left_align: @notification_setting.source.nil? + ), saved: @saved } end |