Skip to content

Commit

Permalink
subtask: Show option menus case by case
Browse files Browse the repository at this point in the history
  • Loading branch information
doortts committed Mar 13, 2017
1 parent 81a4a61 commit 890f3b5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/views/issue/create.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
</div>
}
@if(StringUtils.isNotEmpty(parentIssueId)) {
@partial_select_subtask(project, Long.parseLong(parentIssueId), false)
@partial_select_subtask(project, Long.parseLong(parentIssueId), null)
} else {
@partial_select_subtask(project, null, false)
@partial_select_subtask(project, null, null)
}
}
</dd>
Expand Down
2 changes: 1 addition & 1 deletion app/views/issue/edit.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
}
</div>
}
@partial_select_subtask(project, parentIssueId, parentIssueId != null)
@partial_select_subtask(project, parentIssueId, issue.id)
}
</dd>
</dl>
Expand Down
3 changes: 2 additions & 1 deletion app/views/issue/partial_select_subtask.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
* Copyright Yona & Yobi Authors & NAVER Corp.
* https://yona.io
**@
@(project:Project, parentIssueId:Long, showOption:Boolean = false)
@(project:Project, parentIssueId:Long, currentIssueId:Long)

@showOption = @{Option(parentIssueId).isDefined && Option(currentIssueId).isDefined}
@import utils.TemplateHelper._

<div class="subtask-wrap @if(showOption){show}">
Expand Down

0 comments on commit 890f3b5

Please sign in to comment.