2024-06-06 13:58:58: merge [main:94936000280c72ce43ef30f2a36a36333115dd62];
This commit is contained in:
1 parent
e8dfc2e552
commit
031a92db3f
17 files changed
+171
-97
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { LinkOutlined } from '@ant-design/icons'
|
||||
import { FileProtectOutlined } from '@ant-design/icons'
|
||||
import { List, message, Spin, Tooltip } from 'antd'
|
||||
import { Layout } from 'isp-ui-kit'
|
||||
import { ColumnItem } from 'isp-ui-kit/dist/Layout/Column/column.type'
|
||||
@@ -120,12 +120,14 @@ const ApplicationsContent: FC<ApplicationsContentPropTypes> = ({
|
||||
|
||||
createApplicationService(newApplicationApp)
|
||||
.unwrap()
|
||||
.then(() => message.success('Элемент сохранен'))
|
||||
.catch(() => message.error('Ошибка добавления элемента')).finally(()=> setShowApplicationsModal({
|
||||
...showApplicationsModal,
|
||||
addModal: false
|
||||
}))
|
||||
|
||||
.then(() => {
|
||||
message.success('Элемент сохранен')
|
||||
setShowApplicationsModal({
|
||||
...showApplicationsModal,
|
||||
addModal: false
|
||||
})
|
||||
})
|
||||
.catch(() => message.error('Ошибка добавления элемента'))
|
||||
}
|
||||
const handleRemoveApplicationApp = (id: number) =>
|
||||
removeApplicationsService([id])
|
||||
@@ -139,8 +141,8 @@ const ApplicationsContent: FC<ApplicationsContentPropTypes> = ({
|
||||
const renderColumnItems = (item: ColumnItem<any>) => {
|
||||
return (
|
||||
<List.Item>
|
||||
<Tooltip mouseEnterDelay={1} title={item.name}>
|
||||
<List.Item.Meta title={item.name} />
|
||||
<Tooltip mouseEnterDelay={1.3} title={item.name}>
|
||||
<List.Item.Meta title={item.name} description={item.description} />
|
||||
<div
|
||||
className="link-btn"
|
||||
onClick={(e) => {
|
||||
@@ -148,7 +150,9 @@ const ApplicationsContent: FC<ApplicationsContentPropTypes> = ({
|
||||
navigate(`/appAccess/${item.id}`)
|
||||
}}
|
||||
>
|
||||
<LinkOutlined />
|
||||
<Tooltip title="Доступы приложений">
|
||||
<FileProtectOutlined />
|
||||
</Tooltip>
|
||||
</div>
|
||||
</Tooltip>
|
||||
</List.Item>
|
||||
|
||||
Reference in new issue
Block a user