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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
277712cc
Commit
277712cc
authored
Oct 07, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Creates new list from a new label
Closes #23026
parent
957744da
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
0 deletions
+35
-0
CHANGELOG.md
CHANGELOG.md
+1
-0
app/assets/javascripts/boards/components/new_list_dropdown.js.es6
...ts/javascripts/boards/components/new_list_dropdown.js.es6
+13
-0
app/assets/javascripts/create_label.js.es6
app/assets/javascripts/create_label.js.es6
+2
-0
spec/features/boards/boards_spec.rb
spec/features/boards/boards_spec.rb
+19
-0
No files found.
CHANGELOG.md
View file @
277712cc
...
...
@@ -12,6 +12,7 @@ entry.
-
Adds support for the
`token`
attribute in project hooks API (Gauvain Pocentek)
-
Adds an optional path parameter to the Commits API to filter commits by path (Luis HGO)
-
Fix Markdown styling inside reference links (Jan Zdráhal)
-
Create new issue board list after creating a new label
-
Fix extra space on Build sidebar on Firefox !7060
-
Fail gracefully when creating merge request with non-existing branch (alexsanford)
-
Fix mobile layout issues in admin user overview page !7087
...
...
app/assets/javascripts/boards/components/new_list_dropdown.js.es6
View file @
277712cc
...
...
@@ -2,6 +2,19 @@
$(() => {
const Store = gl.issueBoards.BoardsStore;
$(document).off('created.label').on('created.label', (e, label) => {
Store.new({
title: label.title,
position: Store.state.lists.length - 2,
list_type: 'label',
label: {
id: label.id,
title: label.title,
color: label.color
}
});
});
$('.js-new-board-list').each(function () {
const $this = $(this);
new gl.CreateLabelDropdown($this.closest('.dropdown').find('.dropdown-new-label'), $this.data('namespace-path'), $this.data('project-path'));
...
...
app/assets/javascripts/create_label.js.es6
View file @
277712cc
...
...
@@ -115,6 +115,8 @@
.show();
} else {
this.$dropdownBack.trigger('click');
$(document).trigger('created.label', label);
}
});
}
...
...
spec/features/boards/boards_spec.rb
View file @
277712cc
...
...
@@ -380,6 +380,25 @@ describe 'Issue Boards', feature: true, js: true do
wait_for_board_cards
(
1
,
5
)
end
it
'creates new list from a new label'
do
click_button
'Create new list'
wait_for_ajax
click_link
'Create new label'
fill_in
(
'new_label_name'
,
with:
'Testing New Label'
)
first
(
'.suggest-colors a'
).
click
click_button
'Create'
wait_for_ajax
wait_for_vue_resource
expect
(
page
).
to
have_selector
(
'.board'
,
count:
5
)
end
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