Commit 803d2490 by zhaochengxiang

分支详情屏蔽一些按钮

parent 6362fe0a
...@@ -509,7 +509,8 @@ const EditModel = (props) => { ...@@ -509,7 +509,8 @@ const EditModel = (props) => {
> >
导出 导出
</PermissionButton> </PermissionButton>
<PermissionButton {
!modelerData?.fork && <PermissionButton
type='primary' type='primary'
onClick={onChangeCatalog} onClick={onChangeCatalog}
ghost ghost
...@@ -518,6 +519,7 @@ const EditModel = (props) => { ...@@ -518,6 +519,7 @@ const EditModel = (props) => {
> >
变更目录 变更目录
</PermissionButton> </PermissionButton>
}
<PermissionButton <PermissionButton
type='primary' type='primary'
onClick={onHistory} onClick={onHistory}
...@@ -530,7 +532,7 @@ const EditModel = (props) => { ...@@ -530,7 +532,7 @@ const EditModel = (props) => {
{ {
readOnly!=='true' && <Space> readOnly!=='true' && <Space>
{ {
!modelerData?.inheritedFromEasyDataModelerDataModel && <PermissionButton !modelerData?.inheritedFromEasyDataModelerDataModel && !modelerData?.fork && <PermissionButton
type='primary' type='primary'
onClick={() => { onClick={() => {
if (importActionRef.current && importActionRef.current.isLoading()) { if (importActionRef.current && importActionRef.current.isLoading()) {
...@@ -581,7 +583,7 @@ const EditModel = (props) => { ...@@ -581,7 +583,7 @@ const EditModel = (props) => {
onClick={save} onClick={save}
loading={confirmLoading} loading={confirmLoading}
> >
{action==='edit' ? '保存' : '保存衍生表'} 保存
</Button> </Button>
</Space> </Space>
) )
......
...@@ -305,7 +305,7 @@ const ImportActionHeader = (props) => { ...@@ -305,7 +305,7 @@ const ImportActionHeader = (props) => {
style={{ marginBottom }} style={{ marginBottom }}
> >
{ {
editable ? <AutoComplete options={options} onSearch={onSearch} /> : <span className='word-wrap'>{highlightSearchContentByTerms(modelerData?.name, terms)}</span> (editable && !modelerData?.fork) ? <AutoComplete options={options} onSearch={onSearch} /> : <span className='word-wrap'>{highlightSearchContentByTerms(modelerData?.name, terms)}</span>
} }
</Form.Item> </Form.Item>
</Col> </Col>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment