mirror of
https://github.com/IT4Change/ohmyform-ui.git
synced 2025-12-13 09:45:50 +00:00
show warning icon in form list if not public
This commit is contained in:
parent
7b5e717a56
commit
cf53f46b48
@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||
### Changed
|
||||
|
||||
- update translations (https://github.com/ohmyform/ui/pull/70)
|
||||
- show warning icon in form list if not public
|
||||
|
||||
### Fixed
|
||||
|
||||
|
||||
@ -3,6 +3,7 @@ import {
|
||||
EditOutlined,
|
||||
GlobalOutlined,
|
||||
UnorderedListOutlined,
|
||||
WarningOutlined,
|
||||
} from '@ant-design/icons/lib'
|
||||
import { Button, message, Popconfirm, Space, Table, Tag, Tooltip } from 'antd'
|
||||
import { PaginationProps } from 'antd/es/pagination'
|
||||
@ -149,11 +150,21 @@ const Index: NextPage = () => {
|
||||
</Button>
|
||||
</Popconfirm>
|
||||
|
||||
<Tooltip title={row.isLive ? null : 'Not Public accessible!'}>
|
||||
{row.isLive && (
|
||||
<Button href={`/form/${row.id}`} target={'_blank'}>
|
||||
<GlobalOutlined />
|
||||
</Button>
|
||||
</Tooltip>
|
||||
)}
|
||||
|
||||
{!row.isLive && (
|
||||
<Tooltip title={'Not Public accessible!'} placement={'left'}>
|
||||
<Button href={`/form/${row.id}`} target={'_blank'}>
|
||||
<WarningOutlined />
|
||||
</Button>
|
||||
</Tooltip>
|
||||
)}
|
||||
|
||||
|
||||
</Space>
|
||||
)
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user