Merge pull request 'master' (#64) from master into develop
Reviewed-on: #64
This commit is contained in:
@@ -6,6 +6,7 @@ import { Button } from '@/components/ui/button'
|
|||||||
import { Input } from '@/components/ui/input'
|
import { Input } from '@/components/ui/input'
|
||||||
import { Label } from '@/components/ui/label'
|
import { Label } from '@/components/ui/label'
|
||||||
import { KriSingleSelect } from '@/components/common/KriAutoComplete'
|
import { KriSingleSelect } from '@/components/common/KriAutoComplete'
|
||||||
|
import { LIST_IS_USE_LABEL } from '@/components/table-column/ListTableColumn'
|
||||||
import { useDialog } from '@/hooks/useDialog'
|
import { useDialog } from '@/hooks/useDialog'
|
||||||
import { useDownloadListItemFileByHeaderMutation, useUploadListItemFileMutation } from '@/query/list'
|
import { useDownloadListItemFileByHeaderMutation, useUploadListItemFileMutation } from '@/query/list'
|
||||||
import { ListHeaderConst } from '@/const/listConst'
|
import { ListHeaderConst } from '@/const/listConst'
|
||||||
@@ -334,6 +335,26 @@ const ListContactInfoPanel = ({
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (header.listHderTy === ListHeaderConst.IS_USE) {
|
||||||
|
return (
|
||||||
|
<FieldRow key={header.listHderId} label={header.listHderNm} editable={canEditField}>
|
||||||
|
<KriSingleSelect
|
||||||
|
items={Object.values(LIST_IS_USE_LABEL)}
|
||||||
|
value={value}
|
||||||
|
disabled={!editable}
|
||||||
|
onChange={onChange}
|
||||||
|
getValue={(item) => item}
|
||||||
|
getLabel={(item) => item}
|
||||||
|
searchable={false}
|
||||||
|
preventDeselect
|
||||||
|
widthClassName="w-full"
|
||||||
|
heightClassName="h-9"
|
||||||
|
className={disabledContrastClass}
|
||||||
|
/>
|
||||||
|
</FieldRow>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
if (header.listHderTy === ListHeaderConst.CONTENT_ITEM && (header.filterContents?.length ?? 0) > 0) {
|
if (header.listHderTy === ListHeaderConst.CONTENT_ITEM && (header.filterContents?.length ?? 0) > 0) {
|
||||||
return (
|
return (
|
||||||
<FieldRow key={header.listHderId} label={header.listHderNm} editable={canEditField}>
|
<FieldRow key={header.listHderId} label={header.listHderNm} editable={canEditField}>
|
||||||
|
|||||||
Reference in New Issue
Block a user