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

Use internal/external OBC URL #939

Merged
merged 5 commits into from
Jun 9, 2020
Merged

Use internal/external OBC URL #939

merged 5 commits into from
Jun 9, 2020

Conversation

mjoyce91
Copy link

@mjoyce91 mjoyce91 commented Jun 5, 2020

Display the external version of the OBC URL on the proxy.

Easiest way to test is to change 'msappproxy' to 'localhost'.

Use with MetaPhase-Consulting/State-TalentMAP-API#370

@@ -22,28 +24,32 @@ const OBCUrl = ({ type, label, isButton, altStyle, url }) => {

text = label || `${text} details`;

Choose a reason for hiding this comment

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

Do you think we should capitalize 'details' to stay more consistent (sometimes we send in label as 'myTxt Details')?

Copy link
Author

Choose a reason for hiding this comment

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

I think there's a reason we use one over the other (when this appears in the results card vs details page, etc)

Choose a reason for hiding this comment

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

ah, gotcha 👍 good to know :)

@@ -22,28 +24,32 @@ const OBCUrl = ({ type, label, isButton, altStyle, url }) => {

text = label || `${text} details`;

if (includes(get(window, 'location.host'), 'msappproxy')) {
url$ = url.external;

Choose a reason for hiding this comment

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

🔎 No Lodash get? 😱 🙀

@elizabeth-jimenez elizabeth-jimenez self-requested a review June 5, 2020 19:45
Copy link

@elizabeth-jimenez elizabeth-jimenez left a comment

Choose a reason for hiding this comment

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

🍨 🍬 🍭 🍰 👍

@mjoyce91 mjoyce91 merged commit 6333c27 into dev Jun 9, 2020
@mjoyce91 mjoyce91 deleted the update/external-obc branch June 9, 2020 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants