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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
eeab52de
Commit
eeab52de
authored
Jun 27, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
875a1b84
c30742e9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
4 deletions
+47
-4
app/assets/javascripts/notes/components/discussion_notes.vue
app/assets/javascripts/notes/components/discussion_notes.vue
+4
-4
changelogs/unreleased/63200-reply-button-broken.yml
changelogs/unreleased/63200-reply-button-broken.yml
+5
-0
spec/frontend/notes/components/discussion_notes_spec.js
spec/frontend/notes/components/discussion_notes_spec.js
+38
-0
No files found.
app/assets/javascripts/notes/components/discussion_notes.vue
View file @
eeab52de
...
...
@@ -105,8 +105,8 @@ export default {
:commit=
"commit"
:help-page-path=
"helpPagePath"
:show-reply-button=
"userCanReply"
@
handle
-delete-n
ote=
"$emit('deleteNote')"
@
start
-r
eplying=
"$emit('startReplying')"
@
handle
DeleteN
ote=
"$emit('deleteNote')"
@
start
R
eplying=
"$emit('startReplying')"
>
<note-edited-text
v-if=
"discussion.resolved"
...
...
@@ -132,7 +132,7 @@ export default {
:note=
"componentData(note)"
:help-page-path=
"helpPagePath"
:line=
"line"
@
handle
-delete-n
ote=
"$emit('deleteNote')"
@
handle
DeleteN
ote=
"$emit('deleteNote')"
/>
</
template
>
</template>
...
...
@@ -144,7 +144,7 @@ export default {
:note=
"componentData(note)"
:help-page-path=
"helpPagePath"
:line=
"diffLine"
@
handle
-delete-n
ote=
"$emit('deleteNote')"
@
handle
DeleteN
ote=
"$emit('deleteNote')"
>
<slot
v-if=
"index === 0"
slot=
"avatar-badge"
name=
"avatar-badge"
></slot>
</component>
...
...
changelogs/unreleased/63200-reply-button-broken.yml
0 → 100644
View file @
eeab52de
---
title
:
Fix unresponsive reply button in discussions
merge_request
:
29936
author
:
type
:
fixed
spec/frontend/notes/components/discussion_notes_spec.js
View file @
eeab52de
...
...
@@ -112,6 +112,44 @@ describe('DiscussionNotes', () => {
});
});
describe
(
'
events
'
,
()
=>
{
describe
(
'
with groupped notes and replies expanded
'
,
()
=>
{
const
findNoteAtIndex
=
index
=>
wrapper
.
find
(
`.note:nth-of-type(
${
index
+
1
}
`
);
beforeEach
(()
=>
{
createComponent
({
shouldGroupReplies
:
true
,
isExpanded
:
true
});
});
it
(
'
emits deleteNote when first note emits handleDeleteNote
'
,
()
=>
{
findNoteAtIndex
(
0
).
vm
.
$emit
(
'
handleDeleteNote
'
);
expect
(
wrapper
.
emitted
().
deleteNote
).
toBeTruthy
();
});
it
(
'
emits startReplying when first note emits startReplying
'
,
()
=>
{
findNoteAtIndex
(
0
).
vm
.
$emit
(
'
startReplying
'
);
expect
(
wrapper
.
emitted
().
startReplying
).
toBeTruthy
();
});
it
(
'
emits deleteNote when second note emits handleDeleteNote
'
,
()
=>
{
findNoteAtIndex
(
1
).
vm
.
$emit
(
'
handleDeleteNote
'
);
expect
(
wrapper
.
emitted
().
deleteNote
).
toBeTruthy
();
});
});
describe
(
'
with ungroupped notes
'
,
()
=>
{
let
note
;
beforeEach
(()
=>
{
createComponent
();
note
=
wrapper
.
find
(
'
.note
'
);
});
it
(
'
emits deleteNote when first note emits handleDeleteNote
'
,
()
=>
{
note
.
vm
.
$emit
(
'
handleDeleteNote
'
);
expect
(
wrapper
.
emitted
().
deleteNote
).
toBeTruthy
();
});
});
});
describe
(
'
componentData
'
,
()
=>
{
beforeEach
(()
=>
{
createComponent
();
...
...
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