Commit a966e6e4 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Initialize LabelManager only when necessary

parent b4e4e611
......@@ -101,7 +101,7 @@ class Dispatcher
when 'projects:labels:new', 'projects:labels:edit'
new Labels()
when 'projects:labels:index'
new LabelManager()
new LabelManager() if $('.prioritized-labels').length
when 'projects:network:show'
# Ensure we don't create a particular shortcut handler here. This is
# already created, where the network graph is created.
......
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