story操作权限限制
All checks were successful
test/timeline-frontend/pipeline/head This commit looks good

This commit is contained in:
2025-12-31 14:37:17 +08:00
parent 1e93920162
commit bafe31a619

View File

@@ -31,7 +31,7 @@ interface Props {
} }
const TimelineItemDrawer: React.FC<Props> = (props) => { const TimelineItemDrawer: React.FC<Props> = (props) => {
const { storyItem, open, setOpen, handleDelete, handOption } = props; const { storyItem, open, setOpen, handleDelete, handOption, disableEdit } = props;
const intl = useIntl(); const intl = useIntl();
const { data: imagesList, run } = useRequest( const { data: imagesList, run } = useRequest(
@@ -100,7 +100,7 @@ const TimelineItemDrawer: React.FC<Props> = (props) => {
</div> </div>
</div> </div>
} }
footer={ {disableEdit ?? footer={ disableEdit &&
<div style={{ textAlign: 'right' }}> <div style={{ textAlign: 'right' }}>
<Space> <Space>
<Button <Button
@@ -133,7 +133,7 @@ const TimelineItemDrawer: React.FC<Props> = (props) => {
<Button onClick={closeDrawer}></Button> <Button onClick={closeDrawer}></Button>
</Space> </Space>
</div> </div>
>}} }>
<div style={{ padding: '0 24px' }}> <div style={{ padding: '0 24px' }}>
<div style={{ marginBottom: '24px' }}> <div style={{ marginBottom: '24px' }}>
<h3></h3> <h3></h3>