Show related user stories section only if it's needed
parent
1d9a405a76
commit
a0e95d36ca
|
@ -29,6 +29,9 @@ class RelatedUserStoriesController
|
|||
@.sectionName = "Epics"
|
||||
@.showCreateRelatedUserstoriesLightbox = false
|
||||
|
||||
showRelatedUserStoriesSection: () ->
|
||||
return @projectService.hasPermission("modify_epic") or @.userstories?.legth > 0
|
||||
|
||||
userCanSort: () ->
|
||||
return @projectService.hasPermission("modify_epic")
|
||||
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
section.related-userstories
|
||||
section.related-userstories(
|
||||
ng-if="vm.showRelatedUserStoriesSection()"
|
||||
)
|
||||
.related-userstories-header
|
||||
span.related-userstories-title(translate="COMMON.RELATED_USERSTORIES")
|
||||
tg-related-userstories-create(
|
||||
|
|
Loading…
Reference in New Issue