fix: 144986 wiki的"使用此版本“按钮权限控制
fix: 144986 wiki的"使用此版本“按钮权限控制
This commit is contained in:
parent
371d93be23
commit
27e5336c3b
|
|
@ -83,11 +83,11 @@ export default (props) => {
|
|||
}
|
||||
>预览</Button>
|
||||
<div className="divider"></div>
|
||||
<Button type='link' onClick={()=>{
|
||||
{permission && <Button type='link' onClick={()=>{
|
||||
const currentSearchParams = new URLSearchParams(search)
|
||||
currentSearchParams.set('sha', text)
|
||||
history.push(`/${owner}/${repoIdentifier}/wiki/edit?${currentSearchParams.toString()}`)
|
||||
}}>使用此版本</Button>
|
||||
history.push(`/${owner}/${repoIdentifier}/wiki/edit?${currentSearchParams.toString()}`)
|
||||
}}>使用此版本</Button>}
|
||||
</div>
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue