2024-11-19 15:00:10: merge [main:ec8b2dbb32f4d94fc9e18304a08d24c481909ee4];

This commit is contained in:
txix committed 2024-11-19 15:00:10 +03:00
1 parent fbad913311
commit 64852bca9f
9 files changed
+20 -14

No files matched your search

+5
View File
@@ -1,3 +1,8 @@
## 0.18.2
- Добавлено закрытие мождельного окна после изменения пароля
- Добавле рефеч данных провиля пос после обновления роли
- Исправлена верстка модального окна
- Добавлено отправка формы на странице логина по нажатии Enter
## 0.18.1
- В разделе модули в таблице подключений модуля для key строк в таблице добавлено id
## 0.18.0
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "isp-admin-ui",
"private": true,
"version": "0.18.1",
"version": "0.18.2",
"type": "module",
"scripts": {
"start": "vite",
@@ -47,6 +47,7 @@ const ChangePasswordModal: FC<ChangePasswordModalProps> = ({
await logoutUser()
message.success('Пароль успешно изменен')
clearErrors('oldPassword')
onClose()
} catch (error: any) {
if (error.response.data.errorCode === 1001) {
setError('oldPassword', {
@@ -39,7 +39,7 @@ const ConfirmConfigModal: FC<ConfirmModalProps> = ({
onClose={onClose}
>
<Button
className="confirm-btn danger"
className="confirm-modal-btn danger"
type="primary"
danger
onClick={() => {
@@ -49,7 +49,7 @@ const ConfirmConfigModal: FC<ConfirmModalProps> = ({
>
Сохранить принудительно
</Button>
<Button className="confirm-btn" type="primary" onClick={onConfirmHandler}>
<Button className="confirm-modal-btn" type="primary" onClick={onConfirmHandler}>
Принять изменения
</Button>
</Modal>
@@ -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;
+1
View File
@@ -96,6 +96,7 @@ const LoginPage = () => {
type="primary"
className="login-page__content__submit-btn"
onClick={handleSubmit(handleSubmitForm)}
htmlType="submit"
>
Войти
</Button>
+4
View File
@@ -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) => {
+2 -1
View File
@@ -1,7 +1,8 @@
.close-btn {
border: none;
background: transparent;
padding: 5px !important;
box-shadow: none;
padding: 0 !important;
position: absolute;
top: 8px;
right: 8px;
+3 -2
View File
@@ -40,13 +40,14 @@
&__title {
color: $grey;
font-size: 17px;
padding: 0 10px;
padding-right: 20px;
}
&__content {
padding: 10px;
font-size: 14px;
color: #2c3e50;
overflow: auto;
display: flex;
justify-content: space-between;
}
&__footer {
display: flex;