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

NRPT-755: mine record opens in same tab instead of new window #839

Merged
merged 5 commits into from
Apr 26, 2021

Conversation

cameronpettit
Copy link
Contributor

No description provided.

@@ -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');
Copy link
Contributor

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>
Copy link
Contributor

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?

Copy link
Contributor Author

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

@sonarcloud
Copy link

sonarcloud bot commented Apr 26, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@cameronpettit cameronpettit merged commit 5402a97 into bcgov:master Apr 26, 2021
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.

3 participants