Project

General

Profile

« Previous | Next » 

Revision 56502

minor changes

View differences:

modules/uoa-repository-dashboard-gui/branches/development/src/app/pages/adminPg/registration.component.ts
77 77
    this.getRegisteredRepositories();
78 78
  }
79 79

  
80
  handleChangeAndResetPage() {
81
    this.dataForm.get('page').setValue(0);
82
    this.getRegisteredRepositories();
83
  }
84

  
85 80
  getCountryName(countryCode): string {
86 81
    for (const country of Object.values(this.countries)) {
87 82
      if (country.code === countryCode) {
modules/uoa-repository-dashboard-gui/branches/development/src/app/pages/adminPg/registration.component.html
36 36
                <div class="uk-margin">
37 37
                  <label class="uk-form-label uk-text-right" for="pageSize">Items per page: </label>
38 38
                  <div class="uk-form-controls">
39
                    <select class="uk-select" id="pageSize" (change)="handleChangeAndResetPage()" formControlName="pageSize">
39
                    <select class="uk-select" id="pageSize" (change)="this.dataForm.get('page').setValue(0); handleChange()" formControlName="pageSize">
40 40
                      <option value="10">10</option>
41 41
                      <option value="25" selected>25</option>
42 42
                      <option value="50">50</option>

Also available in: Unified diff