Commit d4063f55 by zhaochengxiang

服务放开新建

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