forked from mattermost/mattermost-webapp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MM-12130: Create a new page for displaying terms of service (mattermo…
…st#1735) * MM-12130: Create a new page for displaying terms of service - Replace the Back Button with a Logout Button - Add default props Update shouldComponentUpdate - Make Mattermost navigate to this page if user is already logged in has not accepted TOS and TOS is enabled - Make Mattermost navigate to this page after logging in if user has not accepted TOS and TOS is enabled - Add Loading screen and test cases. - Handle Redirect while opening routes, App Navigation and login flow - Added new config fields for service terms - made service terms text field disabled if custom terms are disabled - Integrate API request for Agree and Disagree Actions - Use the currently logged in user instead of sending userId. - Updated service terms messages to indicate that it is a beta feature - Add tests * Add action for new API call for getServiceTerms Update tests accordingly * Add test and fix check-style * Update terms of service link * Minor Fixes * - Sent boolean for registerUserAction instead of string - Update tests * Remove Redirect Action * hid custom service terms setting if feature is not enabled * Update admin_definition.jsx * Fix check-style * check CustomTermsOfService in license * Minor Fixes - Do not update terms seen by user when config is updated - Update terms Help text - Do not stop loaders just before redirecting to another page - Footer buttons and text on terms_of_service page are aligned to bottom - Update tests accordingly * Remove terms of service redirect from login controller
- Loading branch information
1 parent
9fda083
commit af50cec
Showing
17 changed files
with
515 additions
and
3 deletions.
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
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. | ||
// See LICENSE.txt for license information. | ||
|
||
import {connect} from 'react-redux'; | ||
|
||
import {getConfig} from 'mattermost-redux/selectors/entities/general'; | ||
|
||
import TermsOfService from './terms_of_service'; | ||
|
||
function mapStateToProps(state) { | ||
const config = getConfig(state); | ||
return { | ||
customServiceTermsId: config.CustomServiceTermsId, | ||
privacyPolicyLink: config.PrivacyPolicyLink, | ||
siteName: config.SiteName, | ||
termsEnabled: config.EnableCustomServiceTerms === 'true', | ||
termsOfServiceLink: config.TermsOfServiceLink, | ||
}; | ||
} | ||
|
||
export default connect(mapStateToProps)(TermsOfService); |
Oops, something went wrong.