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
10dccdc4
Commit
10dccdc4
authored
May 26, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'issue-edit-inline' into issue-edit-inline-project-move-warning
[ci skip]
parents
6becf288
0defc4f7
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
8 deletions
+11
-8
app/assets/javascripts/issue_show/components/edit_actions.vue
...assets/javascripts/issue_show/components/edit_actions.vue
+1
-1
app/assets/javascripts/issue_show/components/fields/description.vue
.../javascripts/issue_show/components/fields/description.vue
+2
-1
app/assets/javascripts/vue_shared/components/markdown/field.vue
...sets/javascripts/vue_shared/components/markdown/field.vue
+1
-1
app/helpers/issuables_helper.rb
app/helpers/issuables_helper.rb
+1
-1
spec/controllers/projects/issues_controller_spec.rb
spec/controllers/projects/issues_controller_spec.rb
+1
-1
spec/features/issues/move_spec.rb
spec/features/issues/move_spec.rb
+5
-3
No files found.
app/assets/javascripts/issue_show/components/edit_actions.vue
View file @
10dccdc4
...
...
@@ -48,7 +48,7 @@
class=
"btn btn-save pull-left"
:class=
"
{ disabled: formState.updateLoading || !isSubmitEnabled }"
type="submit"
:disabled="
formState.
updateLoading || !isSubmitEnabled"
:disabled="updateLoading || !isSubmitEnabled"
@click.prevent="updateIssuable">
Save changes
<i
...
...
app/assets/javascripts/issue_show/components/fields/description.vue
View file @
10dccdc4
...
...
@@ -43,7 +43,8 @@
aria-label=
"Description"
v-model=
"formState.description"
ref=
"textarea"
slot=
"textarea"
>
slot=
"textarea"
placeholder=
"Write a comment or drag your files here..."
>
</textarea>
</markdown-field>
</div>
...
...
app/assets/javascripts/vue_shared/components/markdown/field.vue
View file @
10dccdc4
...
...
@@ -62,7 +62,7 @@
/*
GLForm class handles all the toolbar buttons
*/
return
new
gl
.
GLForm
(
$
(
this
.
$refs
[
'
gl-form
'
]));
return
new
gl
.
GLForm
(
$
(
this
.
$refs
[
'
gl-form
'
])
,
true
);
},
};
</
script
>
...
...
app/helpers/issuables_helper.rb
View file @
10dccdc4
...
...
@@ -210,7 +210,7 @@ module IssuablesHelper
markdownPreviewUrl:
preview_markdown_path
(
@project
),
markdownDocs:
help_page_path
(
'user/markdown'
),
projectsAutocompleteUrl:
autocomplete_projects_path
(
project_id:
@project
.
id
),
t
emplates:
issuable_templates
(
issuable
),
issuableT
emplates:
issuable_templates
(
issuable
),
projectPath:
ref_project
.
path
,
projectNamespace:
ref_project
.
namespace
.
full_path
,
initialTitleHtml:
markdown_field
(
issuable
,
:title
),
...
...
spec/controllers/projects/issues_controller_spec.rb
View file @
10dccdc4
...
...
@@ -204,7 +204,7 @@ describe Projects::IssuesController do
body
=
JSON
.
parse
(
response
.
body
)
expect
(
body
[
'assignees'
].
first
.
keys
)
.
to
match_array
(
%w(id name username avatar_url)
)
.
to
match_array
(
%w(id name username avatar_url
state web_url
)
)
end
end
...
...
spec/features/issues/move_spec.rb
View file @
10dccdc4
...
...
@@ -38,9 +38,11 @@ feature 'issue move to another project' do
end
scenario
'moving issue to another project'
,
js:
true
do
find
(
'#
move_to_project_id
'
,
visible:
false
).
set
(
new_project
.
id
)
find
(
'#
issuable-move
'
,
visible:
false
).
set
(
new_project
.
id
)
click_button
(
'Save changes'
)
wait_for_requests
expect
(
current_url
).
to
include
project_path
(
new_project
)
expect
(
page
).
to
have_content
(
"Text with
#{
cross_reference
}#{
mr
.
to_reference
}
"
)
...
...
@@ -51,7 +53,7 @@ feature 'issue move to another project' do
scenario
'searching project dropdown'
,
js:
true
do
new_project_search
.
team
<<
[
user
,
:reporter
]
page
.
within
'.
js-move-dropdow
n'
do
page
.
within
'.
detail-page-descriptio
n'
do
first
(
'.select2-choice'
).
click
end
...
...
@@ -69,7 +71,7 @@ feature 'issue move to another project' do
background
{
another_project
.
team
<<
[
user
,
:guest
]
}
scenario
'browsing projects in projects select'
do
click_link
'
Selec
t project'
click_link
'
Move to a differen
t project'
page
.
within
'.select2-results'
do
expect
(
page
).
to
have_content
'No project'
...
...
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