提交 b55ad844 编写于 作者: F Filipa Lacerda

[ci skip] Remove all global data

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册