change(ui): edition msaas check

This commit is contained in:
Shekar Siri 2024-02-15 16:04:03 +01:00
parent 523928891a
commit 6ec98fbb63
4 changed files with 4 additions and 9 deletions

View file

@ -3,10 +3,7 @@ import { withRouter, RouteComponentProps } from 'react-router-dom';
import withPageTitle from 'HOCs/withPageTitle';
import withPermissions from 'HOCs/withPermissions';
import AssistRouter from './AssistRouter';
import { SideMenuitem } from 'UI';
import { withSiteId, assist, recordings } from 'App/routes';
import { connect } from 'react-redux';
import { ENTERPRISE_REQUEIRED } from 'App/constants';
interface Props extends RouteComponentProps {
siteId: string;
@ -15,9 +12,6 @@ interface Props extends RouteComponentProps {
}
function Assist(props: Props) {
return (
<AssistRouter />
);

View file

@ -30,5 +30,5 @@ function DashboardOptions(props: Props) {
}
export default connect(state => ({
isEnterprise: state.getIn([ 'user', 'account', 'edition' ]) === 'ee',
isEnterprise: state.getIn([ 'user', 'account', 'edition' ]) === 'ee' || state.getIn([ 'user', 'account', 'edition' ]) === 'msaas',
}))(DashboardOptions);

View file

@ -68,5 +68,5 @@ function MetricTypeList(props: Props) {
}
export default connect((state: any) => ({
isEnterprise: state.getIn(['user', 'account', 'edition']) === 'ee'
isEnterprise: state.getIn(['user', 'account', 'edition']) === 'ee' || state.getIn(['user', 'account', 'edition']) === 'msaas'
}))(withRouter(MetricTypeList));

View file

@ -142,7 +142,8 @@ function ScreenRecorder({
}
export default connect((state: any) => ({
isEnterprise: state.getIn(['user', 'account', 'edition']) === 'ee',
isEnterprise: state.getIn(['user', 'account', 'edition']) === 'ee' ||
state.getIn(['user', 'account', 'edition']) === 'msaas',
siteId: state.getIn(['site', 'siteId']),
sessionId: state.getIn(['sessions', 'current']).sessionId,
agentId: state.getIn(['user', 'account', 'id']),