Don't show it if there's no project.
This is aligning with EE
This commit is contained in:
parent
408c595292
commit
f67c2ead87
1 changed files with 8 additions and 7 deletions
|
@ -31,10 +31,11 @@
|
|||
":board-id" => "boardId",
|
||||
":key" => "_uid" }
|
||||
= render "shared/boards/components/sidebar"
|
||||
%board-add-issues-modal{ "new-issue-path" => new_project_issue_path(@project),
|
||||
"milestone-path" => milestones_filter_dropdown_path,
|
||||
"label-path" => labels_filter_path,
|
||||
"empty-state-svg" => image_path('illustrations/issues.svg'),
|
||||
":issue-link-base" => "issueLinkBase",
|
||||
":root-path" => "rootPath",
|
||||
":project-id" => @project.try(:id) }
|
||||
- if @project
|
||||
%board-add-issues-modal{ "new-issue-path" => new_project_issue_path(@project),
|
||||
"milestone-path" => milestones_filter_dropdown_path,
|
||||
"label-path" => labels_filter_path,
|
||||
"empty-state-svg" => image_path('illustrations/issues.svg'),
|
||||
":issue-link-base" => "issueLinkBase",
|
||||
":root-path" => "rootPath",
|
||||
":project-id" => @project.id }
|
||||
|
|
Loading…
Reference in a new issue