Initialize LabelManager only when necessary

This commit is contained in:
Alfredo Sumaran
2016-06-06 11:59:49 -05:00
parent b4e4e61184
commit a966e6e451
+1 -1
View File
@@ -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.