Skip to content

Commit

Permalink
fix(admin-ui): jans-link source ldap server not saving
Browse files Browse the repository at this point in the history
Signed-off-by: Jeet Viramgama <jviramgama5@gmail.com>
  • Loading branch information
jv18creator committed Sep 18, 2023
1 parent 2b1e79e commit 21a6315
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
32 changes: 16 additions & 16 deletions admin-ui/plugins/admin/components/Roles/UiRoleListPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,22 @@ import getThemeColor from 'Context/theme/config'
import { ROLE_DELETE } from '../../../../app/utils/PermChecker'

function UiRoleListPage() {
const apiRoles = useSelector(state => state.apiRoleReducer.items);
const loading = useSelector(state => state.apiRoleReducer.loading);
const permissions = useSelector(state => state.authReducer.permissions);
const apiRoles = useSelector((state) => state.apiRoleReducer.items)
const loading = useSelector((state) => state.apiRoleReducer.loading)
const permissions = useSelector((state) => state.authReducer.permissions)

const dispatch = useDispatch();
const { t } = useTranslation()
const [modal, setModal] = useState(false)
const toggle = () => setModal(!modal)
const myActions = []
const options = []
const userAction = {}
const pageSize = localStorage.getItem('paggingSize') || 10
const theme = useContext(ThemeContext)
const selectedTheme = theme.state.theme
const themeColors = getThemeColor(selectedTheme)
const bgThemeColor = { background: themeColors.background }
const myActions = [],
options = [],
userAction = {},
pageSize = localStorage.getItem('paggingSize') || 10,
theme = useContext(ThemeContext),
selectedTheme = theme.state.theme,
themeColors = getThemeColor(selectedTheme),
bgThemeColor = { background: themeColors.background },
toggle = () => setModal(!modal),
{ t } = useTranslation(),
dispatch = useDispatch()

useEffect(() => {
doFetchList()
Expand Down Expand Up @@ -96,7 +96,7 @@ function UiRoleListPage() {
return (
<select
onChange={(e) => rowData.onChange(e.target.value)}
className="form-control"
className='form-control'
>
<option
selected={
Expand Down Expand Up @@ -129,7 +129,7 @@ function UiRoleListPage() {
]}
data={apiRoles}
isLoading={loading || false}
title=""
title=''
actions={myActions}
options={{
search: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,9 @@ const SourceBackendServerForm = () => {
let payload

if (!sourceConfig?.configId) {
const sourceConfigs = [...(cacheRefreshConfiguration.sourceConfigs || [])]
payload = [
...cacheRefreshConfiguration.sourceConfigs,
...sourceConfigs,
{
...formik.values.sourceConfigs,
baseDNs: baseDNs,
Expand Down

0 comments on commit 21a6315

Please sign in to comment.