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
303e854b
Commit
303e854b
authored
Nov 30, 2018
by
Fatih Acet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change issue weight dropdown to be a input
parent
f7f4112c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
16 deletions
+8
-16
ee/app/views/shared/issuable/form/_weight.html.haml
ee/app/views/shared/issuable/form/_weight.html.haml
+1
-6
ee/changelogs/unreleased/_acet-weight-input.yml
ee/changelogs/unreleased/_acet-weight-input.yml
+5
-0
ee/spec/features/issues/form_spec.rb
ee/spec/features/issues/form_spec.rb
+1
-5
ee/spec/features/projects/issues/user_creates_issue_spec.rb
ee/spec/features/projects/issues/user_creates_issue_spec.rb
+1
-5
No files found.
ee/app/views/shared/issuable/form/_weight.html.haml
View file @
303e854b
...
...
@@ -13,9 +13,4 @@
-
if
issuable
.
weight
=
form
.
hidden_field
:weight
=
weight_dropdown_tag
(
issuable
,
toggle_class:
'js-issuable-form-weight'
)
do
%ul
-
Issue
.
weight_options
.
each
do
|
weight
|
%li
%a
{
href:
'#'
,
data:
{
id:
weight
,
none:
weight
===
Issue
::
WEIGHT_NONE
},
class:
(
"is-active"
if
issuable
.
weight
==
weight
)
}
=
weight
=
form
.
text_field
:weight
,
class:
"datepicker form-control"
,
placeholder:
"Enter a number"
,
autocomplete:
"off"
,
type:
"text"
ee/changelogs/unreleased/_acet-weight-input.yml
0 → 100644
View file @
303e854b
---
title
:
Change issue create weight dropdown to an input
merge_request
:
8648
author
:
type
:
changed
ee/spec/features/issues/form_spec.rb
View file @
303e854b
...
...
@@ -152,11 +152,7 @@ describe 'New/edit issue', :js do
expect
(
page
.
all
(
'input[name="issue[label_ids][]"]'
,
visible:
false
)[
1
].
value
).
to
match
(
label
.
id
.
to_s
)
expect
(
page
.
all
(
'input[name="issue[label_ids][]"]'
,
visible:
false
)[
2
].
value
).
to
match
(
label2
.
id
.
to_s
)
click_button
'Weight'
page
.
within
'.dropdown-menu-weight'
do
click_link
'1'
end
fill_in
'issue_weight'
,
with:
'1'
click_button
'Submit issue'
...
...
ee/spec/features/projects/issues/user_creates_issue_spec.rb
View file @
303e854b
...
...
@@ -19,11 +19,7 @@ describe "User creates issue", :js do
weight
=
"7"
fill_in
(
"Title"
,
with:
issue_title
)
click_button
(
"Weight"
)
page
.
within
(
".dropdown-menu-weight"
)
do
click_link
(
weight
)
end
fill_in
(
"issue_weight"
,
with:
weight
)
click_button
(
"Submit issue"
)
...
...
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