-
Notifications
You must be signed in to change notification settings - Fork 14
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
NRPT-755: mine record opens in same tab instead of new window #839
Conversation
@@ -93,6 +93,7 @@ export class MinesRecordsTableRowComponent extends TableRowComponent implements | |||
* @memberof MinesRecordsTableRowComponent | |||
*/ | |||
goToEdit() { | |||
window.open(`${this.router.url}/${this.rowData._id}/edit`, '_blank'); | |||
this.router.navigate([this.rowData._id, 'edit'], {relativeTo: this.route}); | |||
// window.open(`${this.router.url}/${this.rowData._id}/edit`, '_blank'); |
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.
Remove commented out code.
<div class="mb-2 col-12 col-sm-8"> | ||
<h2 class="border-0 mb-0">Record Information</h2> | ||
<span class="grey-subtext">{{ lastEditedSubText }}</span> | ||
</div> | ||
<div class="d-flex"></div> |
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.
This seems odd, is there a better way to do this?
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.
was unnecessary - has been removed
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
No description provided.