Skip to content

Commit ab3ff35

Browse files
authored
Merge pull request #33 from mahos/publicprep
reset button bug fix
2 parents a448a18 + 45fd1a6 commit ab3ff35

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ for test dev mode, in `docker-compose-deploy.yml` make sure `STAGING=true` for `
7676
`ssh testdev` go to `ibl-navigator`
7777
`docker-compose -f docker-compose-deploy.yml down` to stop what's already running
7878
`sudo rm -R letsencrypt-keys` to get rid of key folder that generated in the previous run.
79+
7980
`git pull https://github.com/vathes/ibl-navigator.git dev` to get the latest from `vathes/ibl-navigator` repo.
81+
NOTE: to make sure branch is freshly deployed, `git checkout remote/branch` is recommended.
82+
`origin` should be pointed to `https://github.com/vathes/ibl-navigator.git` in the testdev EC2 but do double check.
83+
8084
login with your regular github credentials (the one registered under github vathes)
8185
make sure to move over to the `dev` branch by `git checkout dev`
8286
`docker login registry.vathes.com` to docker to get access.
@@ -94,7 +98,10 @@ for client deploy mode, in `docker-compose-deploy.yml` make sure to comment out
9498

9599
`ssh djcompute` go to `nagivator-deployer/ibl-navigator`
96100
`docker-compose -f docker-compose-deploy.yml down` to stop what's already running
101+
97102
`git pull https://github.com/vathes/ibl-navigator.git master` to get the latest from `vathes/ibl-navigator` repo.
103+
NOTE: to make sure branch is freshly deployed, `git checkout remote/branch` is recommended. Do check which remote is pointing to which repo before checking a branch out.
104+
98105
login with your regular github credentials (the one registered under github vathes)
99106
make sure to move over to the `master` branch by `git checkout master`
100107
`docker login registry.vathes.com` to docker to get access.

ibl-frontend/frontend-content/src/app/session-list/session-list.component.ts

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -862,6 +862,7 @@ export class SessionListComponent implements OnInit, OnDestroy {
862862
* Triggers when user presses the reset filter button - no new fetch here, just clearing the input fields and stored state
863863
*/
864864
async handleResetFilterButtonPress() {
865+
this.isLoading = true;
865866
for (const control in this.session_filter_form.controls) {
866867
const toReset = {}
867868

@@ -891,11 +892,23 @@ export class SessionListComponent implements OnInit, OnDestroy {
891892
}
892893
})
893894

894-
//
895+
// clear the filter in storage before applying filter
896+
this.filterStoreService.clearSessionFilter();
897+
895898
this.restrictedSessions = await this.applyFilter();
896899
this.createMenu(this.restrictedSessions);
900+
901+
// intention here is to reset the sort/pagination to default state before updating table view
902+
this.paginator.pageIndex = 0;
903+
this.paginator.pageSize = 25;
904+
// the below is to remove the arrow UI that doesn't go away after this.sort.active = ''
905+
this.sort.sortables.forEach(sortItem => {
906+
this.sort.sort(sortItem);
907+
});
908+
this.sort.active = '';
909+
897910
await this.updateTableView(this.restrictedSessions);
898-
// console.log('reset filter is done')
911+
this.isLoading = false;
899912
return;
900913
}
901914

0 commit comments

Comments
 (0)