Commit c04cbc8f901dbc273fe3854945d0f0c4e41a595c
1 parent
d33b21cf
Exists in
master
and in
8 other branches
Fix navigation at 'participe' button
Showing
2 changed files
with
11 additions
and
1 deletions
Show diff stats
src/app/pages/programas/conheca-o-programa.html
| @@ -17,7 +17,7 @@ | @@ -17,7 +17,7 @@ | ||
| 17 | <aside class="program--aside"ng-class="pageProgramaContent.program.categories[0].slug"> | 17 | <aside class="program--aside"ng-class="pageProgramaContent.program.categories[0].slug"> |
| 18 | <div class="col-sm-6" > | 18 | <div class="col-sm-6" > |
| 19 | <div class="button--themed"> | 19 | <div class="button--themed"> |
| 20 | - <button class="btn btn-block" ng-click="pageProgramaContent.goBack()"> | 20 | + <button class="btn btn-block" ng-click="pageProgramaContent.goToPreview()"> |
| 21 | <span class="glyphicon glyphicon-arrow-left" aria-hidden="true"></span> | 21 | <span class="glyphicon glyphicon-arrow-left" aria-hidden="true"></span> |
| 22 | Participe | 22 | Participe |
| 23 | </button> | 23 | </button> |
src/app/pages/programas/programa.content.controller.js
| @@ -68,4 +68,14 @@ | @@ -68,4 +68,14 @@ | ||
| 68 | } | 68 | } |
| 69 | vm.loading = false; | 69 | vm.loading = false; |
| 70 | }; | 70 | }; |
| 71 | + | ||
| 72 | + ProgramaContentPageController.prototype.goToPreview = function () { | ||
| 73 | + var vm = this; | ||
| 74 | + | ||
| 75 | + vm.$state.go('programa', { | ||
| 76 | + slug: vm.program.slug | ||
| 77 | + }, { | ||
| 78 | + location: true | ||
| 79 | + }); | ||
| 80 | + }; | ||
| 71 | })(); | 81 | })(); |