Skip to content

Commit

Permalink
v0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Lins e Silva committed May 8, 2019
1 parent 79f57a1 commit 4ba8a2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/dashboard/referendum/referendum.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ <h4 class="white mt-0" pTooltip="Proposer: {{p.proposal.proposer}}">
<br>
<div class="clr-row ">
<div class="clr-col-12 pagination-row text-center">
<pagination-controls (pageChange)="page = $event" ></pagination-controls>
<pagination-controls (pageChange)="onPageChange($event)" ></pagination-controls>
</div>
</div>
<br>
Expand Down
4 changes: 4 additions & 0 deletions src/app/dashboard/referendum/referendum.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ export class ReferendumComponent implements OnInit {
}, 200);
}

onPageChange(page: number) {
this.page = page;
window.scrollTo(0, 0);
}

extOpen(value) {
return window['shell']['openExternal'](value);
Expand Down

0 comments on commit 4ba8a2a

Please sign in to comment.