Skip to content

Commit

Permalink
Domain adding a new group does not refresh primefaces#149
Browse files Browse the repository at this point in the history
  • Loading branch information
atretyak1985 committed Mar 8, 2019
1 parent 44f176d commit 859dcdb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/organization/admin/user/user_list.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,17 @@ export class UserListComponent implements OnInit {
}

refresh() {
let currentPage;
this.addUserModel = new AddUserModel();
this.addDomainGroupModel = new AddDomainGroupModel();

let currentPage = this.ptable.first / this.ROWS + 1;
this.emptyResponse = false;
this.ptable.setScrollPosition(0);
if (this.ptable) {
currentPage= this.ptable.first / this.ROWS + 1;
this.ptable.setScrollPosition(0);
} else {
currentPage = 1;
}
this.service.reset();
this.service.getList(currentPage);
jQuery('#refresh-button').blur();
Expand Down

0 comments on commit 859dcdb

Please sign in to comment.