-
Notifications
You must be signed in to change notification settings - Fork 174
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
Add newTab option to linkManager #2190
Conversation
docs/luigi-client-api.md
Outdated
* **since**: 0.7.7 | ||
|
||
#### newTab | ||
|
||
Enables navigating to a new tab. | ||
|
||
##### Examples | ||
|
||
```javascript | ||
LuigiClient.linkManager().newTab().navigate('/projects/xy/foobar'); | ||
``` | ||
|
||
**Meta** | ||
|
||
* **since**: NEXT_RELEASE |
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.
- Added documentation that might need review.
if (e.data.params.newTab) { | ||
let path = buildPath(e.data.params); | ||
path = GenericHelpers.addLeadingSlash(path); | ||
openViewInNewTab(path); | ||
} else if (e.data.params.modal !== undefined) { |
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.
- Added if clause that checks if newTab is activated.
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.
Overall looks good, well done 👍.
Left a minor comment only.
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.
Looks good 👍
Please resolve file conflicts.
Co-authored-by: Stanley Hsu <stanleyhsu1984@gmail.com>
Enables opening paths in a new tab
Description
Changes proposed in this pull request:
Related issue(s)
Resolves #2188