Commit e9c5e312 authored by Jacob Schatz's avatar Jacob Schatz Committed by Phil Hughes

Add icon as a opt for notifier

parent f7e21099
# Written by Jacob Schatz @jakecodes
# Written by GitLab @gitlab
((w) ->
notifyMe = (message,body) ->
notifyMe = (message,body, icon) ->
notification = undefined
opts =
body: body
icon: "#{document.location.origin}/assets/gitlab_logo.png"
icon: icon
# Let's check if the browser supports notifications
if !('Notification' of window)
# do nothing
......
......@@ -13,6 +13,7 @@
url_to_automerge_check: "#{merge_check_namespace_project_merge_request_path(@project.namespace, @project, @merge_request)}",
check_enable: #{@merge_request.unchecked? ? "true" : "false"},
url_to_ci_check: "#{ci_status_namespace_project_merge_request_path(@project.namespace, @project, @merge_request)}",
gitlab_icon: #{asset_path "gitlab_logo.png"},
ci_enable: #{@project.ci_service ? "true" : "false"}
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment