summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-04-11 19:33:26 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-04-12 12:10:58 -0300
commitef22b76b732c2bf4ce52b8a73570ac2921f9caa4 (patch)
tree871bb03716893281710875869f726d1aca05ed63 /app/views
parentfe58c1f13cc0758bbbd8f85b8794b458b3a72b55 (diff)
downloadgitlab-ce-ef22b76b732c2bf4ce52b8a73570ac2921f9caa4.tar.gz
Simplify Projects::NotificationSettingsController
Diffstat (limited to 'app/views')
-rw-r--r--app/views/projects/buttons/_notifications.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/buttons/_notifications.html.haml b/app/views/projects/buttons/_notifications.html.haml
index 49f541399f2..c1e3e5b73a2 100644
--- a/app/views/projects/buttons/_notifications.html.haml
+++ b/app/views/projects/buttons/_notifications.html.haml
@@ -1,5 +1,5 @@
- if @notification_setting
- = form_for @notification_setting, url: namespace_project_notification_setting_path(@project.namespace.becomes(Namespace), @project), remote: true, html: { class: 'inline', id: 'notification-form' } do |f|
+ = form_for @notification_setting, url: namespace_project_notification_setting_path(@project.namespace.becomes(Namespace), @project), method: :patch, remote: true, html: { class: 'inline', id: 'notification-form' } do |f|
= f.hidden_field :level
%span.dropdown
%a.dropdown-new.btn.notifications-btn#notifications-button{href: '#', "data-toggle" => "dropdown"}