Commit ada07a8aa771b30650982b322dc7252cfcf9a8d8
1 parent
c1995119
Exists in
master
and in
8 other branches
Fix check length of TopRated
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
src/app/pages/programas/programa.html
| ... | ... | @@ -58,7 +58,7 @@ |
| 58 | 58 | </div> |
| 59 | 59 | <div class="col-md-4"> |
| 60 | 60 | <div class="row"> |
| 61 | - <div class="col-xs-12" ng-if="pageProgramaContent.proposalsTopRated && pageProgramaContent.proposalsTopRated.lenght > 0"> | |
| 61 | + <div class="col-xs-12" ng-if="pageProgramaContent.proposalsTopRated && pageProgramaContent.proposalsTopRated.length > 0"> | |
| 62 | 62 | <h3 class="color-theme-fg">Propostas mais votadas</h3> |
| 63 | 63 | <proposal-carousel proposals="pageProgramaContent.proposalsTopRated"></proposal-carousel> |
| 64 | 64 | </div> |
| ... | ... | @@ -66,7 +66,7 @@ |
| 66 | 66 | <h3 class="color-theme-fg">Propostas nesse programa</h3> |
| 67 | 67 | <proposal-related proposal="pageProgramaContent.randomProposal" topic="pageProgramaContent.article" category="pageProgramaContent.category"></proposal-related> |
| 68 | 68 | </div> |
| 69 | - <div class="col-xs-12" ng-if="!pageProgramaContent.randomProposal && !(pageProgramaContent.proposalsTopRated && pageProgramaContent.proposalsTopRated.lenght > 0)"> | |
| 69 | + <div class="col-xs-12" ng-if="!pageProgramaContent.randomProposal && !(pageProgramaContent.proposalsTopRated && pageProgramaContent.proposalsTopRated.length > 0)"> | |
| 70 | 70 | <h3>Programas sem propostas</h3> |
| 71 | 71 | <p> |
| 72 | 72 | Este programa ainda não possui nenhuma proposta. |
| ... | ... | @@ -82,12 +82,12 @@ |
| 82 | 82 | </div> |
| 83 | 83 | </section> |
| 84 | 84 | |
| 85 | - <section class="proposal-ranking-section"> | |
| 85 | + <section class="proposal-ranking-section" ng-if="pageProgramaContent.proposals && pageProgramaContent.proposals.length > 0"> | |
| 86 | 86 | <div class="container"> |
| 87 | 87 | <div class="proposal-ranking-section-header"> |
| 88 | 88 | <h3 class="color-theme-fg">Resultados de propostas mais votadas</h3> |
| 89 | 89 | </div> |
| 90 | - <div class="proposal-ranking-section-table" ng-if="pageProgramaContent.proposals"> | |
| 90 | + <div class="proposal-ranking-section-table"> | |
| 91 | 91 | <proposal-list proposals="pageProgramaContent.proposals"></proposal-list> |
| 92 | 92 | </div> |
| 93 | 93 | </div> | ... | ... |