Merge branch 'osw-order-boards-by-name' into 'master'
[Backport] Order boards dropdown alphabetically See merge request gitlab-org/gitlab-ce!18065
This commit is contained in:
commit
85418f9ae8
1 changed files with 5 additions and 1 deletions
|
@ -2,11 +2,15 @@ module Boards
|
|||
class ListService < Boards::BaseService
|
||||
def execute
|
||||
create_board! if parent.boards.empty?
|
||||
parent.boards
|
||||
boards
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def boards
|
||||
parent.boards
|
||||
end
|
||||
|
||||
def create_board!
|
||||
Boards::CreateService.new(parent, current_user).execute
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue