change(ui): edition msaas check
This commit is contained in:
parent
523928891a
commit
6ec98fbb63
4 changed files with 4 additions and 9 deletions
|
|
@ -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 />
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
|
|
@ -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']),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue