Skip to content

Commit

Permalink
fix(admin-ui): client scope search & redirect url
Browse files Browse the repository at this point in the history
  • Loading branch information
jv18creator committed Jul 24, 2023
1 parent 7ebcca9 commit 4437753
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
3 changes: 1 addition & 2 deletions admin-ui/app/routes/Apps/Gluu/GluuTypeAheadWithAdd.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ function GluuTypeAheadWithAdd({
lsize = 4,
rsize = 8,
disabled,
multiple = true
}) {
const [items, setItems] = useState(value)
const [opts, setOpts] = useState(options)
Expand Down Expand Up @@ -92,7 +91,7 @@ function GluuTypeAheadWithAdd({
id={name}
name={name}
data-testid={name}
multiple={multiple}
multiple={true}
selected={items}
options={opts}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,8 @@ const ClientBasicPanel = ({
};

const debounceFn = useCallback(_debounce((query) => {
const searchedScope = scopeOptions?.find((scope) => scope.name.includes(query))
if (isEmpty(searchedScope)) {
query && handleDebounceFn(query)
}
}, 500), [scopeOptions])
query && handleDebounceFn(query)
}, 500), [])

function handleDebounceFn(inputValue) {
userScopeAction['pattern'] = inputValue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import ClientSoftwarePanel from './ClientSoftwarePanel'
import ClientCibaParUmaPanel from './ClientCibaParUmaPanel'
import ClientEncryptionSigningPanel from './ClientEncryptionSigningPanel'
import {toast} from 'react-toastify'
import { cloneDeep } from 'lodash'
const sequence = [
'Basic',
'Tokens',
Expand Down Expand Up @@ -344,7 +345,7 @@ function ClientWizardForm({
return (
<div>
<ClientBasic
client={client}
client={cloneDeep(client)}
scopes={scopes}
formik={formik}
viewOnly={viewOnly}
Expand All @@ -356,7 +357,7 @@ function ClientWizardForm({
return (
<div>
<ClientTokensPanel
client={client}
client={cloneDeep(client)}
scripts={scripts}
formik={formik}
viewOnly={viewOnly}
Expand All @@ -367,7 +368,7 @@ function ClientWizardForm({
return (
<div>
<ClientLogoutPanel
client={client}
client={cloneDeep(client)}
scripts={scripts}
formik={formik}
viewOnly={viewOnly}
Expand All @@ -378,7 +379,7 @@ function ClientWizardForm({
return (
<div>
<ClientSoftwarePanel
client={client}
client={cloneDeep(client)}
scripts={scripts}
formik={formik}
viewOnly={viewOnly}
Expand All @@ -389,7 +390,7 @@ function ClientWizardForm({
return (
<div>
<ClientCibaParUmaPanel
client={client}
client={cloneDeep(client)}
umaResources={umaResources}
scopes={scopes}
scripts={scripts}
Expand All @@ -404,7 +405,7 @@ function ClientWizardForm({
return (
<div>
<ClientEncryptionSigningPanel
client={client}
client={cloneDeep(client)}
formik={formik}
oidcConfiguration={oidcConfiguration}
viewOnly={viewOnly}
Expand All @@ -415,7 +416,7 @@ function ClientWizardForm({
return (
<div>
<ClientAdvanced
client={client}
client={cloneDeep(client)}
scripts={scripts}
formik={formik}
scopes={scopes}
Expand All @@ -427,7 +428,7 @@ function ClientWizardForm({
return (
<div>
<ClientScript
client={client}
client={cloneDeep(client)}
formik={formik}
scripts={scripts}
viewOnly={viewOnly}
Expand Down

0 comments on commit 4437753

Please sign in to comment.