Commit d4063f55 by zhaochengxiang

服务放开新建

parent dda6b462
...@@ -584,11 +584,9 @@ const ModelTree = (props) => { ...@@ -584,11 +584,9 @@ const ModelTree = (props) => {
} */} } */}
{ {
(viewSelectedKey==='dir' && getDataModelerRole(user)===DataModelerRoleAdmin) && isSetRootId && ( viewSelectedKey==='dir' && <Tooltip title="同步目录" className='ml-6'>
<Tooltip title="同步目录" className='ml-6'>
<Button type='text' icon={<SwapOutlined className='default' style={{ transform: 'rotate(90deg)' }} />} size='small' onClick={sync} /> <Button type='text' icon={<SwapOutlined className='default' style={{ transform: 'rotate(90deg)' }} />} size='small' onClick={sync} />
</Tooltip> </Tooltip>
)
} }
</div> </div>
} }
......
...@@ -702,9 +702,7 @@ class Model extends React.Component { ...@@ -702,9 +702,7 @@ class Model extends React.Component {
placement="bottomLeft" placement="bottomLeft"
trigger={['click']} trigger={['click']}
> >
<Tooltip title={this.state.isRoot?'请先选择目录':''}> <Button>新建</Button>
<Button disabled={this.state.isRoot}>新建</Button>
</Tooltip>
</Dropdown> </Dropdown>
</Space> </Space>
......
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