2024-11-19 15:00:10: merge [main:ec8b2dbb32f4d94fc9e18304a08d24c481909ee4];
This commit is contained in:
1 parent
fbad913311
commit
64852bca9f
9 files changed
+20
-14
No files matched your search
@@ -113,9 +113,6 @@
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
.ant-btn-group {
|
||||
@@ -132,17 +129,13 @@
|
||||
}
|
||||
|
||||
.modal__wrap {
|
||||
min-height: 110px;
|
||||
min-height: 100px;
|
||||
}
|
||||
|
||||
.confirm-btn {
|
||||
width: 190px;
|
||||
}
|
||||
|
||||
.confirm-btn, .danger {
|
||||
margin-right: $basic-margin;
|
||||
}
|
||||
|
||||
.error-data {
|
||||
color: red;
|
||||
font-size: 16px;
|
||||
|
||||
@@ -96,6 +96,7 @@ const LoginPage = () => {
|
||||
type="primary"
|
||||
className="login-page__content__submit-btn"
|
||||
onClick={handleSubmit(handleSubmitForm)}
|
||||
htmlType="submit"
|
||||
>
|
||||
Войти
|
||||
</Button>
|
||||
|
||||
@@ -24,6 +24,8 @@ import { routePaths } from '@routes/routePaths.ts'
|
||||
import { NewRoleType, PermissionKeysType, RoleType } from '@type/roles.type.ts'
|
||||
|
||||
import './roles-page.scss'
|
||||
import { useAppDispatch } from '@hooks/redux.ts'
|
||||
import { fetchProfile } from '@stores/redusers/ActionCreators.ts'
|
||||
|
||||
const { Column, EmptyData, NoData } = Layout
|
||||
|
||||
@@ -34,6 +36,7 @@ const RolesPage = () => {
|
||||
const fromApp = location.state?.fromApp || false
|
||||
const { role, hasPermission } = useRole()
|
||||
const [searchParams, setSearchParams] = useSearchParams()
|
||||
const dispatch = useAppDispatch()
|
||||
const searchValue = searchParams.get('search') || ''
|
||||
const { data: permissionList = [], isLoading: isPermissionLoading } =
|
||||
userServiceApi.useGetAllPermissionsQuery()
|
||||
@@ -97,6 +100,7 @@ const RolesPage = () => {
|
||||
updateRole(formValue as RoleType)
|
||||
.unwrap()
|
||||
.then(() => {
|
||||
dispatch(fetchProfile())
|
||||
message.success('Элемент успешно добавлен').then()
|
||||
})
|
||||
.catch((error) => {
|
||||
|
||||
Reference in new issue
Block a user