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

Wrong intercom link if intercomAppId is not set #3769

Closed
trendspotter opened this issue Aug 29, 2018 · 6 comments · Fixed by ushahidi/platform-client#1379
Closed

Wrong intercom link if intercomAppId is not set #3769

trendspotter opened this issue Aug 29, 2018 · 6 comments · Fixed by ushahidi/platform-client#1379
Labels
Bug good-first-issue Issues that are ideal for first time contributors to OSS or first time contributing to the platform Hacktoberfest Issues open to folks participating in hacktoberfest Theme: SaaS

Comments

@trendspotter
Copy link

Expected behaviour

Intercom link under Ushahidi support menu should be hidden when intercomAppId is not set in config.js.

Actual behaviour

When intercomAppId is not set in config.js or is set to empty string, displayed Intercom menu item leads to bogus address @intercom-mail.com

Steps to reproduce the behaviour/error

  1. Install Ushahidi 3.12.3.
  2. Don't fill any value for intercomAppId in config.js.
  3. Login to Ushahidi.
  4. Click on Ushahidi support menu item (bottom left).
  5. Observe address in Intercom link.
@rowasc rowasc transferred this issue from ushahidi/platform-client Sep 20, 2019
@rowasc
Copy link
Contributor

rowasc commented Sep 20, 2019

@all-contributors please add @trendspotter for bug
Thank you for reporting a bug !

@allcontributors
Copy link
Contributor

@rowasc

I've put up a pull request to add @trendspotter! 🎉

@rowasc rowasc added good-first-issue Issues that are ideal for first time contributors to OSS or first time contributing to the platform Hacktoberfest Issues open to folks participating in hacktoberfest labels Sep 22, 2019
@ritesh-pandey
Copy link

Is the issue available as community task?

Will this patch fix the issue?

-    <dt class="list-item" ng-show="loggedin"><a id="intercom_custom_launcher" href="mailto:{{intercomAppId}}@intercom-mail.com" target="_blank" translate>app.intercom.intercom</a></dt>
+    <dt class="list-item" ng-show="loggedin && intercomAppId"><a id="intercom_custom_launcher" href="mailto:{{intercomAppId}}@intercom-mail.com" target="_blank" translate>app.intercom.intercom</a></dt>

We need to show intercom launcher link only if interecomAppId is present.

@Angamanga
Copy link
Contributor

@ritesh-pandey Thank you for reaching out, yes this is available as a community task 🎉 Your solution is correct, in addition, you would probably need to do the same check for the row below as well: https://github.com/ushahidi/platform-client/blob/develop/app/common/directives/mode-bar/support-links.html#L14

@Angamanga
Copy link
Contributor

@all-contributors please add @ritesh-pandey for code

@allcontributors
Copy link
Contributor

@Angamanga

I've put up a pull request to add @ritesh-pandey! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug good-first-issue Issues that are ideal for first time contributors to OSS or first time contributing to the platform Hacktoberfest Issues open to folks participating in hacktoberfest Theme: SaaS
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants