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
47bd607e
Commit
47bd607e
authored
Jul 18, 2017
by
Fatih Acet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IssueNotesRefactor: Fix specs.
parent
44306f26
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
2 deletions
+4
-2
app/assets/javascripts/notes/components/issue_comment_form.vue
...ssets/javascripts/notes/components/issue_comment_form.vue
+1
-0
app/assets/javascripts/notes/components/issue_note_form.vue
app/assets/javascripts/notes/components/issue_note_form.vue
+1
-0
app/assets/javascripts/notes/stores/issue_notes_utils.js
app/assets/javascripts/notes/stores/issue_notes_utils.js
+1
-1
spec/support/quick_actions_helpers.rb
spec/support/quick_actions_helpers.rb
+1
-1
No files found.
app/assets/javascripts/notes/components/issue_comment_form.vue
View file @
47bd607e
...
...
@@ -169,6 +169,7 @@ export default {
:addSpacingClasses=
"false"
>
<textarea
id=
"note-body"
name=
"note[note]"
class=
"note-textarea js-gfm-input js-autosize markdown-area"
data-supports-slash-commands=
"true"
data-supports-quick-actions=
"true"
...
...
app/assets/javascripts/notes/components/issue_note_form.vue
View file @
47bd607e
...
...
@@ -106,6 +106,7 @@ export default {
:addSpacingClasses=
"false"
>
<textarea
id=
"note-body"
name=
"note[note]"
class=
"note-textarea js-gfm-input js-autosize markdown-area js-note-text"
data-supports-slash-commands=
"true"
data-supports-quick-actions=
"true"
...
...
app/assets/javascripts/notes/stores/issue_notes_utils.js
View file @
47bd607e
...
...
@@ -8,7 +8,7 @@ export default {
},
getQuickActionText
(
note
)
{
let
text
=
'
Applying command
'
;
const
quickActions
=
AjaxCache
.
get
(
gl
.
GfmAutoComplete
.
dataSources
.
commands
);
const
quickActions
=
AjaxCache
.
get
(
gl
.
GfmAutoComplete
.
dataSources
.
commands
)
||
[]
;
const
executedCommands
=
quickActions
.
filter
((
command
)
=>
{
const
commandRegex
=
new
RegExp
(
`/
${
command
.
name
}
`
);
...
...
spec/support/quick_actions_helpers.rb
View file @
47bd607e
...
...
@@ -2,7 +2,7 @@ module QuickActionsHelpers
def
write_note
(
text
)
Sidekiq
::
Testing
.
fake!
do
page
.
within
(
'.js-main-target-form'
)
do
fill_in
'note
[note]
'
,
with:
text
fill_in
'note
-body
'
,
with:
text
find
(
'.js-comment-submit-button'
).
trigger
(
'click'
)
end
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