Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
cd5599a5
Commit
cd5599a5
authored
Jul 21, 2017
by
Fatih Acet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IssueNotesRefactor: camelCase event names.
parent
a59f2369
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
app/assets/javascripts/notes/components/issue_comment_form.vue
...ssets/javascripts/notes/components/issue_comment_form.vue
+2
-2
app/assets/javascripts/notes/components/issue_note.vue
app/assets/javascripts/notes/components/issue_note.vue
+1
-1
app/assets/javascripts/notes/components/issue_note_form.vue
app/assets/javascripts/notes/components/issue_note_form.vue
+1
-1
app/assets/javascripts/notes/components/issue_notes.vue
app/assets/javascripts/notes/components/issue_notes.vue
+1
-1
No files found.
app/assets/javascripts/notes/components/issue_comment_form.vue
View file @
cd5599a5
...
...
@@ -127,7 +127,7 @@ export default {
const
myLastNoteId
=
$
(
'
.js-my-note
'
).
last
().
attr
(
'
id
'
);
if
(
myLastNoteId
)
{
eventHub
.
$emit
(
'
E
nterEditMode
'
,
{
eventHub
.
$emit
(
'
e
nterEditMode
'
,
{
noteId
:
parseInt
(
myLastNoteId
.
replace
(
'
note_
'
,
''
),
10
),
});
}
...
...
@@ -142,7 +142,7 @@ export default {
this
.
markdownDocsUrl
=
markdownDocs
;
this
.
markdownPreviewUrl
=
markdownPreviewUrl
;
eventHub
.
$on
(
'
I
ssueStateChanged
'
,
(
isClosed
)
=>
{
eventHub
.
$on
(
'
i
ssueStateChanged
'
,
(
isClosed
)
=>
{
this
.
issueState
=
isClosed
?
'
closed
'
:
'
reopened
'
;
});
},
...
...
app/assets/javascripts/notes/components/issue_note.vue
View file @
cd5599a5
...
...
@@ -103,7 +103,7 @@ export default {
},
},
created
()
{
eventHub
.
$on
(
'
E
nterEditMode
'
,
({
noteId
})
=>
{
eventHub
.
$on
(
'
e
nterEditMode
'
,
({
noteId
})
=>
{
if
(
noteId
===
this
.
note
.
id
)
{
this
.
isEditing
=
true
;
this
.
$store
.
dispatch
(
'
scrollToNoteIfNeeded
'
,
$
(
this
.
$el
));
...
...
app/assets/javascripts/notes/components/issue_note_form.vue
View file @
cd5599a5
...
...
@@ -60,7 +60,7 @@ export default {
const
myLastNoteId
=
discussion
.
find
(
'
.js-my-note
'
).
last
().
attr
(
'
id
'
);
if
(
myLastNoteId
)
{
eventHub
.
$emit
(
'
E
nterEditMode
'
,
{
eventHub
.
$emit
(
'
e
nterEditMode
'
,
{
noteId
:
parseInt
(
myLastNoteId
.
replace
(
'
note_
'
,
''
),
10
),
});
}
...
...
app/assets/javascripts/notes/components/issue_notes.vue
View file @
cd5599a5
...
...
@@ -98,7 +98,7 @@ export default {
});
$
(
document
).
on
(
'
issuable:change
'
,
(
e
,
isClosed
)
=>
{
eventHub
.
$emit
(
'
I
ssueStateChanged
'
,
isClosed
);
eventHub
.
$emit
(
'
i
ssueStateChanged
'
,
isClosed
);
});
},
checkLocationHash
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment