mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-22 19:16:39 +10:00
Initialize LabelManager only when necessary
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user