From 7a3b13ff8aa47b5cee9277715cb0df463831e439 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Tue, 7 Jun 2022 15:39:25 +0200 Subject: [PATCH] change(ui) - Tenant Key checking for ee edition --- .../Client/ProfileSettings/ProfileSettings.js | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/frontend/app/components/Client/ProfileSettings/ProfileSettings.js b/frontend/app/components/Client/ProfileSettings/ProfileSettings.js index 14d021810..1ab2186bc 100644 --- a/frontend/app/components/Client/ProfileSettings/ProfileSettings.js +++ b/frontend/app/components/Client/ProfileSettings/ProfileSettings.js @@ -12,7 +12,7 @@ import { connect } from 'react-redux'; @withPageTitle('Account - OpenReplay Preferences') @connect(state => ({ account: state.getIn([ 'user', 'account' ]), - isEnterprise: state.getIn([ 'user', 'client', 'edition' ]) === 'ee', + isEnterprise: state.getIn([ 'user', 'account', 'edition' ]) === 'ee', })) export default class ProfileSettings extends React.PureComponent { render() { @@ -27,7 +27,7 @@ export default class ProfileSettings extends React.PureComponent {
-
+
{ account.hasPassword && ( <> @@ -40,7 +40,7 @@ export default class ProfileSettings extends React.PureComponent {
-
+
)} @@ -52,19 +52,21 @@ export default class ProfileSettings extends React.PureComponent {
-
+
-
-
-

{ 'Tenant Key' }

-
{ 'For SSO (SAML) authentication.' }
+ { !isEnterprise && ( +
+
+

{ 'Tenant Key' }

+
{ 'For SSO (SAML) authentication.' }
+
+
-
-
+ )} { !isEnterprise && ( <> -
+

{ 'Data Collection' }

@@ -77,7 +79,7 @@ export default class ProfileSettings extends React.PureComponent { { account.license && ( <> -
+