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

feat(link): Allow email links without the external icon #1695

Merged
merged 2 commits into from
Sep 17, 2019

Conversation

atlwendy
Copy link
Contributor

closes #1627

mailto-tel

@codecov
Copy link

codecov bot commented Sep 16, 2019

Codecov Report

Merging #1695 into release will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           release    #1695      +/-   ##
===========================================
+ Coverage    95.73%   95.73%   +<.01%     
===========================================
  Files          130      130              
  Lines         5200     5207       +7     
  Branches       895      862      -33     
===========================================
+ Hits          4978     4985       +7     
- Misses         217      222       +5     
+ Partials         5        0       -5
Impacted Files Coverage Δ
terminus-ui/link/src/link.component.ts 100% <100%> (ø) ⬆️
terminus-ui/select/src/select.component.ts 71.02% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c953c3b...a02b09e. Read the comment docs.

Copy link
Contributor

@benjamincharity benjamincharity left a comment

Choose a reason for hiding this comment

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

_

/**
* Decide whether an external icon should be shown
*/
@Input()

This comment was marked as resolved.

public get destination(): string | string[] | undefined {
return this._destination;
}
public set destination(value: string | string[] | undefined) {

This comment was marked as resolved.

return this._destination;
}
public set destination(value: string | string[] | undefined) {
if (typeof (value) === 'string' && (value.includes('mailto') || value.includes('tel'))) {

This comment was marked as resolved.

@atlwendy atlwendy force-pushed the 1627-ts-link-allow-email-links branch from 4bfa626 to 767443c Compare September 16, 2019 14:50
Copy link
Contributor

@benjamincharity benjamincharity left a comment

Choose a reason for hiding this comment

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

🎉

@benjamincharity benjamincharity merged commit a5ed791 into release Sep 17, 2019
@benjamincharity benjamincharity deleted the 1627-ts-link-allow-email-links branch September 26, 2019 18:01
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.

Link: Allow email links without the external icon
2 participants