Commit a966e6e4 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Initialize LabelManager only when necessary

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