Commit b55ad844 authored by Filipa Lacerda's avatar Filipa Lacerda

[ci skip] Remove all global data

parent 20f2987a
......@@ -34,6 +34,7 @@
...mapGetters([
'getCurrentUserLastNote',
'getUserData',
'getIssueData',
]),
isLoggedIn() {
return this.getUserData === null ? false : true;
......@@ -78,7 +79,7 @@
full_data: true,
note: {
noteable_type: 'Issue',
noteable_id: window.gl.issueData.id,
noteable_id: this.getIssueData.id,
note: this.note,
},
},
......@@ -116,7 +117,6 @@
this.issueState = constants.REOPENED;
}
gl.issueData.state = this.issueState;
this.isIssueOpen = !this.isIssueOpen;
// This is out of scope for the Notes Vue component.
......
......@@ -18,7 +18,3 @@
= webpack_bundle_tag 'notes'
= render "layouts/init_auto_complete"
:javascript
window.gl.issueData = #{serialize_issuable(@issue)};
window.gl.currentUserData = #{UserSerializer.new.represent(current_user).to_json};
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