Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Render terms & conditions in settings #2136

Merged
merged 2 commits into from
Aug 24, 2018
Merged

Render terms & conditions in settings #2136

merged 2 commits into from
Aug 24, 2018

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Aug 24, 2018

If configured in config file

Fixes element-hq/element-web#7219

If configured in config file
@dbkr dbkr requested a review from a team August 24, 2018 10:36
@dbkr dbkr changed the title Rener terms & conditions in settings Render terms & conditions in settings Aug 24, 2018
_renderTermsAndConditionsLinks: function() {
if (SdkConfig.get().terms_and_conditions_links) {
const tncLinks = [];
for (const tncEntry of SdkConfig.get().terms_and_conditions_links) {
Copy link
Contributor

Choose a reason for hiding this comment

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

No need to check if terms_and_conditions_links is set here?

Copy link
Contributor

Choose a reason for hiding this comment

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

Oops, you do above already :)

_renderTermsAndConditionsLinks: function() {
if (SdkConfig.get().terms_and_conditions_links) {
const tncLinks = [];
for (const tncEntry of SdkConfig.get().terms_and_conditions_links) {
Copy link
Contributor

Choose a reason for hiding this comment

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

map would fit well here? But oh well ...

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah true - I suppose it doesn't make a lot of difference

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants