[ci skip] Remove all global data
This commit is contained in:
parent
20f2987aa1
commit
b55ad844e8
2 changed files with 2 additions and 6 deletions
|
@ -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};
|
||||
|
|
Loading…
Reference in a new issue