in source/aws-connect-vm-portal/src/agents/Agents.js [57:119]
render() {
let classes = this.props.classes;
if (this.props.role === "") {
return (
<div>
<NavigationBar/>
<p> The user you logged in with is not in the "Manager" Cognito User Pool group. You must be a member of this group to view this page.</p>
</div>
)
}
return (
<div>
<NavigationBar/>
<AgentsTable className={classes.agentsTable}/>
<Dialog
scroll="paper"
disableAutoFocus={true}
open={this.props.showGlobalSettingsModal}
closeAfterTransition
BackdropComponent={Backdrop}
onClose={() => {
this.props.showSettings(false)
}}>
<Fade in={this.props.showGlobalSettingsModal}>
<DialogContent>
<GlobalSettings/>
</DialogContent>
</Fade>
</Dialog>
<Dialog
scroll="paper"
disableAutoFocus={true}
open={this.props.showAgentSettings}
closeAfterTransition
BackdropComponent={Backdrop}
onClose={() => {
this.props.showAgentModal(false)
}}>
<Fade in={this.props.showAgentSettings}>
<DialogContent>
<AgentSettings/>
</DialogContent>
</Fade>
</Dialog>
<Dialog
scroll="paper"
disableAutoFocus={true}
open={this.props.showContactFlowModal}
closeAfterTransition
BackdropComponent={Backdrop}
onClose={() => {
this.props.showContactFlow(false)
}}>
<Fade in={this.props.showContactFlowModal}>
<DialogContent>
<ContactFlow/>
</DialogContent>
</Fade>
</Dialog>
</div>
)
}