Display placeholder if projects have no US

stable
Xavier Julián 2016-09-21 16:05:44 +02:00 committed by David Barragán Merino
parent d186463e5d
commit 4c3710cf4f
2 changed files with 7 additions and 1 deletions

View File

@ -1083,6 +1083,7 @@
"SUBJECT_BULK_MODE": "Subject (bulk insert)", "SUBJECT_BULK_MODE": "Subject (bulk insert)",
"CHOOSE_PROJECT_FROM": "What's the project?", "CHOOSE_PROJECT_FROM": "What's the project?",
"CHOOSE_USERSTORY": "What's the user story?", "CHOOSE_USERSTORY": "What's the user story?",
"NO_USERSTORIES": "This project has no User Stories yet. Please select another project.",
"FILTER_USERSTORIES": "Filter user stories", "FILTER_USERSTORIES": "Filter user stories",
"LIGHTBOX_TITLE_BLOKING_EPIC": "Blocking epic", "LIGHTBOX_TITLE_BLOKING_EPIC": "Blocking epic",
"ACTION_DELETE": "Delete epic" "ACTION_DELETE": "Delete epic"

View File

@ -111,7 +111,12 @@ a.add-button.e2e-add-userstory-button(
ng-show="relatedWithSelector=='new-user-story'" ng-show="relatedWithSelector=='new-user-story'"
) )
fieldset.existing-user-story(ng-show="relatedWithSelector=='existing-user-story'") p(
ng-show="relatedWithSelector=='existing-user-story' && !vm.projectUserstories.size"
translate="EPIC.NO_USERSTORIES"
)
fieldset.existing-user-story(ng-show="relatedWithSelector=='existing-user-story' && vm.projectUserstories.size")
label( label(
translate="EPIC.CHOOSE_USERSTORY" translate="EPIC.CHOOSE_USERSTORY"
for="userstory-filter" for="userstory-filter"