Skip to content
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

general: fix redirection after add, update, delete resource #74

Merged
merged 1 commit into from
Dec 9, 2019

Conversation

Garfield-fr
Copy link
Contributor

Co-Authored-by: Bertrand Zuchuat bertrand.zuchuat@rero.ch

Why are you opening this PR?

  • Fix redirection after add, update, delete resource

How to test?

  • Add, edit and update record and check the redirection

Code review check list

  • Commit message template compliance.
  • Commit message without typos.

Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
@@ -153,7 +154,7 @@ export class DetailComponent implements OnInit {
public deleteRecord(pid: string) {
this.recordUiService.deleteRecord(this.route.snapshot.paramMap.get('type'), pid).subscribe((result: any) => {
if (result === true) {
this.location.back();
this.router.navigate(['../..'], {relativeTo: this.route});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add a small comment as it is not easy to understand. For ex. back to the list or similar.

Copy link

@AoNoOokami AoNoOokami left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR doesn't solve point 29. of rero/rero-ils-ui#43:
New circulation policies > Cancel. Got a an error: rero_ils_admin_ui.4706512e.js:2 POST https://ilsdev.test.rero.ch/api/circ_policies/ 400 (BAD REQUEST) on console.log.

I unckecked it.

@AoNoOokami AoNoOokami merged commit 320ab88 into rero:dev Dec 9, 2019
@Garfield-fr Garfield-fr deleted the zub-fix-router-redirection branch December 12, 2019 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants