MSP-4160 add id in List.Item.Meta in ApplicationsPage, ApplicationsContent and ListItem
This commit is contained in:
1 parent
50175f6fa5
commit
294fd17445
3 files changed
+5
-17
No files matched your search
@@ -142,7 +142,7 @@ const ApplicationsContent: FC<ApplicationsContentPropTypes> = ({
|
|||||||
return (
|
return (
|
||||||
<List.Item>
|
<List.Item>
|
||||||
<Tooltip mouseEnterDelay={1.3} title={item.name}>
|
<Tooltip mouseEnterDelay={1.3} title={item.name}>
|
||||||
<List.Item.Meta title={item.name} description={item.description} />
|
<List.Item.Meta title={item.name} description={<span>id: {item.id}</span>}/>
|
||||||
<div
|
<div
|
||||||
className="link-btn"
|
className="link-btn"
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { List, message, Spin, Tooltip } from 'antd'
|
import { message, Spin } from 'antd'
|
||||||
import { Layout } from 'isp-ui-kit'
|
import { Layout } from 'isp-ui-kit'
|
||||||
import { ColumnItem } from 'isp-ui-kit/dist/Layout/Column/column.type'
|
import { ColumnItem } from 'isp-ui-kit/dist/Layout/Column/column.type'
|
||||||
import { useEffect, useMemo, useState } from 'react'
|
import { useEffect, useMemo, useState } from 'react'
|
||||||
@@ -23,6 +23,7 @@ import applicationsGroupApi from '@services/applicationsGroupService.ts'
|
|||||||
import { routePaths } from '@routes/routePaths.ts'
|
import { routePaths } from '@routes/routePaths.ts'
|
||||||
|
|
||||||
import { PermissionKeysType } from '@type/roles.type.ts'
|
import { PermissionKeysType } from '@type/roles.type.ts'
|
||||||
|
import ListItem from '@widgets/ListItem'
|
||||||
|
|
||||||
import './applications-page.scss'
|
import './applications-page.scss'
|
||||||
|
|
||||||
@@ -79,19 +80,6 @@ const ApplicationsPage = () => {
|
|||||||
return <Spin className="spin" />
|
return <Spin className="spin" />
|
||||||
}
|
}
|
||||||
|
|
||||||
const renderColumnItems = (item: ColumnItem<any>) => {
|
|
||||||
return (
|
|
||||||
<List.Item>
|
|
||||||
<Tooltip mouseEnterDelay={1} title={item.name}>
|
|
||||||
<List.Item.Meta
|
|
||||||
title={item.name}
|
|
||||||
description={<span>{item.description}</span>}
|
|
||||||
/>
|
|
||||||
</Tooltip>
|
|
||||||
</List.Item>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
const addApplicationModal = () => {
|
const addApplicationModal = () => {
|
||||||
setShowApplicationsModal({
|
setShowApplicationsModal({
|
||||||
...showApplicationsModal,
|
...showApplicationsModal,
|
||||||
@@ -183,7 +171,7 @@ const ApplicationsPage = () => {
|
|||||||
applicationsGroup as unknown as ColumnItem<ApplicationsGroupType>[],
|
applicationsGroup as unknown as ColumnItem<ApplicationsGroupType>[],
|
||||||
searchValue
|
searchValue
|
||||||
)}
|
)}
|
||||||
renderItems={renderColumnItems}
|
renderItems={(item) => <ListItem item={item} />}
|
||||||
searchValue={searchValue}
|
searchValue={searchValue}
|
||||||
selectedItemId={selectedItemId}
|
selectedItemId={selectedItemId}
|
||||||
setSelectedItemId={(itemId) => {
|
setSelectedItemId={(itemId) => {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ const ListItem: FC<ListItemProps> = ({ item }) => {
|
|||||||
return (
|
return (
|
||||||
<List.Item>
|
<List.Item>
|
||||||
<Tooltip mouseEnterDelay={1} title={item.name}>
|
<Tooltip mouseEnterDelay={1} title={item.name}>
|
||||||
<List.Item.Meta title={item.name} />
|
<List.Item.Meta title={item.name} description={<span>id: {item.id}</span>} />
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</List.Item>
|
</List.Item>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in new issue
Block a user