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
6c3723d2
Commit
6c3723d2
authored
Jul 21, 2017
by
Fatih Acet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IssueNotesRefactor: Fix shared spec.
parent
a2326c8a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
app/assets/javascripts/notes/components/issue_note_actions.vue
...ssets/javascripts/notes/components/issue_note_actions.vue
+4
-3
app/assets/javascripts/notes/components/issue_note_form.vue
app/assets/javascripts/notes/components/issue_note_form.vue
+1
-1
spec/support/features/reportable_note_shared_examples.rb
spec/support/features/reportable_note_shared_examples.rb
+1
-1
No files found.
app/assets/javascripts/notes/components/issue_note_actions.vue
View file @
6c3723d2
...
...
@@ -122,14 +122,15 @@ export default {
</a>
</li>
<li
v-if=
"canEdit"
>
<
button
@
click=
"deleteHandler"
<
a
@
click
.prevent
=
"deleteHandler"
class=
"btn btn-transparent js-note-delete js-note-delete"
href=
"#"
type=
"button"
>
<span
class=
"text-danger"
>
Delete comment
</span>
</
button
>
</
a
>
</li>
</ul>
</div>
...
...
app/assets/javascripts/notes/components/issue_note_form.vue
View file @
6c3723d2
...
...
@@ -88,7 +88,7 @@ export default {
</
script
>
<
template
>
<div
class=
"note-edit-form"
>
<div
class=
"note-edit-form
current-note-edit-form
"
>
<div
v-if=
"conflictWhileEditing"
class=
"js-conflict-edit-warning alert alert-danger"
>
...
...
spec/support/features/reportable_note_shared_examples.rb
View file @
6c3723d2
...
...
@@ -16,7 +16,7 @@ shared_examples 'reportable note' do
open_dropdown
(
dropdown
)
expect
(
dropdown
).
to
have_button
(
'Edit comment'
)
expect
(
dropdown
).
to
have_
button
(
'Delete comment'
)
expect
(
dropdown
).
to
have_
link
(
'Delete comment'
)
expect
(
dropdown
).
to
have_link
(
'Report as abuse'
,
href:
abuse_report_path
)
end
...
...
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