2024-06-28 14:11:04: merge [main:af3da2fbd0772f70ccd4b74936856548a018951d];

This commit is contained in:
txix committed 2024-06-28 14:11:04 +03:00
1 parent 096c2d401d
commit 0dbf4b0b07
5 files changed
+26 -13

No files matched your search

@@ -4,10 +4,12 @@
display: flex;
flex-direction: column;
background: white;
height: 100%;
-ms-overflow-style: none; /* IE и Edge */
scrollbar-width: none;
border-left: 1px solid $border-color;
height: 100vh;
overflow: scroll;
padding-bottom: 80px;
&::-webkit-scrollbar {
display: none;
}
@@ -17,6 +19,7 @@
&__header {
display: flex;
justify-content: space-between;
align-items: center;
padding: $basic-padding *2 $basic-padding;
border-bottom: 1px solid $border-color;
}
+3 -1
View File
@@ -92,8 +92,8 @@ const ConfigurationEditorPage: FC = () => {
createUpdateConfig(cleanEmptyParamsObject(newData))
.unwrap()
.then(({ id }) => {
message.success('Конфигурация успешно сохранена')
isNew && navigate(`/${moduleId}/configEditor/${id}`)
message.success('Конфигурация успешно сохранена')
})
.catch((e) => {
if (e.data.errorCode === 2004) {
@@ -105,6 +105,7 @@ const ConfigurationEditorPage: FC = () => {
if (e.data.errorCode === 400) {
message.error('Невалидный JSON объект')
}
message.error('Ошибка обновления элемента')
})
}
@@ -152,6 +153,7 @@ const ConfigurationEditorPage: FC = () => {
<RollbackOutlined />
Назад
</Button>
<h1>{bufConfig?.name}</h1>
<div className="configuration-editor-page__controll">
<Button
disabled={!JsonSchema}