-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bring filters back into url, clear session storage on apply empty filter #265
Conversation
@@ -176,7 +174,7 @@ export class DeploymentsListComponent { | |||
} | |||
|
|||
logViewerLink(deploymentId: number){ | |||
window.location.href = '/AMW_web/pages/logView.xhtml?deploymentId=' + deploymentId + '&filters=' + encodeURI(JSON.stringify(this.filtersInUrl)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just added this, can't we keep it? See comment here: #247 (comment)
@@ -665,4 +652,12 @@ export class DeploymentsComponent implements OnInit { | |||
this.isLoading = false; | |||
} | |||
|
|||
private goTo(destination: string) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
goTo is a very generic name, can we call this updateFiltersInURL or something more descriptive?
@@ -332,7 +332,7 @@ describe('DeploymentsComponent (without query params)', () => { | |||
expect(deploymentsComponent.filters.length).toEqual(2); | |||
})); | |||
|
|||
it('should apply filters and add them to the sessionStorage on applyFilter', | |||
it('should apply filters and add them to the sessionStorage on applyFilterss', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo
Closes #245 & closes #250