This repository has been archived by the owner on Mar 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
MM-27454 - Contact Us and Billing Documentation Links #6731
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
0f896ba
Contact Us Links
marianunez 5871efa
translation fix
marianunez 5a98174
Changed to target=_new
marianunez 9108d5a
Merge remote-tracking branch 'origin/master' into cloud-links
marianunez 7935606
Updated redux hash
marianunez 7f4e145
Merge branch 'master' into cloud-links
mattermod 1e633b6
Bumped circleci cache
marianunez d1f80a2
Merge branch 'cloud-links' of https://github.com/mattermost/mattermos…
marianunez bb4a841
Don't forget package-lock.json
marianunez File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ import OverlayTrigger from 'components/overlay_trigger'; | |
import {getCurrentLocale} from 'selectors/i18n'; | ||
import {GlobalState} from 'types/store'; | ||
import {getMonthLong} from 'utils/i18n'; | ||
import {CloudLinks} from 'utils/constants'; | ||
import {localizeMessage} from 'utils/utils'; | ||
|
||
import './plan_details.scss'; | ||
|
@@ -67,8 +68,18 @@ const seatsAndSubscriptionDates = (locale: string, userCount: number, numberOfSe | |
<div className='BillingSubscriptions__tooltipMessage'> | ||
<FormattedMarkdownMessage | ||
id='admin.billing.subscription.planDetails.prolongedOverages' | ||
defaultMessage='Prolonged overages may result in additional charges. [See how billing works](!https://google.com)' | ||
defaultMessage='Prolonged overages may result in additional charges.' | ||
/> | ||
<a | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The markdown formatter already opens the link in a new window/tab, this link feels unnecessary. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I moved out the link from the formatted message so it was not part of the translation string though |
||
target='_new' | ||
rel='noopener noreferrer' | ||
href={CloudLinks.BILLING_DOCS} | ||
> | ||
<FormattedMarkdownMessage | ||
id='admin.billing.subscription.planDetails.howBillingWorks' | ||
defaultMessage='See how billing works' | ||
/> | ||
</a> | ||
</div> | ||
</Tooltip> | ||
)} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Why
_new
over_blank
? Most of what I've read claims this is invalid HTML.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.
_blank
is currently blocked on the desktop app. @Willyfrog what do you recommend here to open links from the desktop app?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.
it shouldn't be blocked, have you checked with 4.6-rc1? it does have some changes that might affect this (using _blank)
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.
Checked in 4.6-rc1 and is good with both
_new
and_blank
. What is the recommended one to use ?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.
use
_blank
if possiblesome info on why: https://stackoverflow.com/questions/4964130/target-blank-vs-target-new