Skip to content

Commit

Permalink
fix(admin-ui): fix type ahead
Browse files Browse the repository at this point in the history
  • Loading branch information
mjatin-dev committed Jan 11, 2023
1 parent 5f065b7 commit 00a6773
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
17 changes: 14 additions & 3 deletions admin-ui/app/routes/Apps/Gluu/GluuCommitDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const GluuCommitDialog = ({
}

return (
<Modal isOpen={modal} toggle={closeModal} className="modal-outline-primary">
<Modal isOpen={modal} size={'lg'} toggle={closeModal} className="modal-outline-primary">
<ModalHeader toggle={closeModal}>
<i
style={{ color: 'green' }}
Expand All @@ -67,14 +67,25 @@ const GluuCommitDialog = ({
operations.map((item, key) => (
<FormGroup row key={key}>
<Col sm={1}>Set</Col>
<Col sm={7}>
<Col sm={5} style={{overflow:"auto"}}>
<Badge color={`primary-${selectedTheme}`}>{item.path}</Badge>
</Col>
<Col sm={1}>to</Col>
<Col sm={3}>
<Col sm={5} style={{overflow:"auto"}}>
{Array.isArray(item.value) ?
<>
{
item.value.map((data) =>
<Badge color={`primary-${selectedTheme}`}>
{String(data)}
</Badge>
)
}
</>:
<Badge color={`primary-${selectedTheme}`}>
{String(item.value)}
</Badge>
}
</Col>
</FormGroup>
))}
Expand Down
8 changes: 7 additions & 1 deletion admin-ui/app/routes/Apps/Gluu/GluuInlineInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,13 @@ function GluuInlineInput({
setShow(true)
}
const handleTypeAheadChange = (selectedOptions) => {
setCorrectValue(selectedOptions)
let object = selectedOptions.filter((data) => typeof data == 'object')
let arrayItems = selectedOptions.filter((data) => typeof data != 'object')

for(let i in object){
arrayItems.push(object[i]['tokenEndpointAuthMethodsSupported'])
}
setCorrectValue(arrayItems)
setShow(true)
}
const onAccept = () => {
Expand Down

0 comments on commit 00a6773

Please sign in to comment.