summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/sidebar/sidebar_bundle.js
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-07-25 16:46:15 +0100
committerPhil Hughes <me@iamphill.com>2017-07-25 16:46:15 +0100
commit887227e0371858d5d048f61bfe0700e4b7ebab58 (patch)
tree94619d6b051f013c87b7265274468961b3b00036 /app/assets/javascripts/sidebar/sidebar_bundle.js
parentfe27de8bf124d65013da1d82618a1ab45584ff68 (diff)
downloadgitlab-ce-887227e0371858d5d048f61bfe0700e4b7ebab58.tar.gz
moved some more inline code
removed some global variable comments
Diffstat (limited to 'app/assets/javascripts/sidebar/sidebar_bundle.js')
-rw-r--r--app/assets/javascripts/sidebar/sidebar_bundle.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/sidebar/sidebar_bundle.js b/app/assets/javascripts/sidebar/sidebar_bundle.js
index 2b02af87d8a..a9df66748c5 100644
--- a/app/assets/javascripts/sidebar/sidebar_bundle.js
+++ b/app/assets/javascripts/sidebar/sidebar_bundle.js
@@ -5,7 +5,8 @@ import sidebarAssignees from './components/assignees/sidebar_assignees';
import Mediator from './sidebar_mediator';
function domContentLoaded() {
- const mediator = new Mediator(gl.sidebarOptions);
+ const sidebarOptions = JSON.parse(document.querySelector('.js-sidebar-options').innerHTML);
+ const mediator = new Mediator(sidebarOptions);
mediator.fetch();
const sidebarAssigneesEl = document.querySelector('#js-vue-sidebar-assignees');