User permission düzenlemesi
This commit is contained in:
parent
dacb97d406
commit
6b6f26c442
1 changed files with 6 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ import {
|
|||
UpdatePermissionDto,
|
||||
} from '@/proxy/admin'
|
||||
import { getPermissions, updatePermissions } from '@/proxy/admin/identity.service'
|
||||
import { useStoreState } from '@/store'
|
||||
import { useStoreActions, useStoreState } from '@/store'
|
||||
import { useLocalization } from '@/utils/hooks/useLocalization'
|
||||
import { ChangeEvent, useEffect, useMemo, useState } from 'react'
|
||||
|
||||
|
|
@ -30,6 +30,7 @@ function UsersPermission({
|
|||
}) {
|
||||
const providerName = 'U'
|
||||
const { translate } = useLocalization()
|
||||
const { getConfig } = useStoreActions((a) => a.abpConfig)
|
||||
|
||||
const [isLoading, setIsLoading] = useState(false)
|
||||
const [permissionList, setPermissionList] = useState<GetPermissionListResultDto>()
|
||||
|
|
@ -100,6 +101,10 @@ function UsersPermission({
|
|||
onDialogClose()
|
||||
setIsLoading(false)
|
||||
}, 1000)
|
||||
|
||||
setTimeout(async () => {
|
||||
getConfig(true)
|
||||
}, 2000)
|
||||
}
|
||||
|
||||
function getPermissionsWithGroupName(groups: PermissionGroupDto[]): PermissionWithGroupName[] {
|
||||
|
|
|
|||
Loading…
Reference in a new issue