This commit is contained in:
caishi 2021-08-04 17:12:29 +08:00
parent 5140bfbe77
commit f944ebad6f
4 changed files with 20 additions and 22 deletions

View File

@ -442,7 +442,7 @@ class Detail extends Component {
<Link to={`${project.author.type ==="Organization" ? "/organize":'/users'}/${project.author.login}`}>{project.author.name}</Link> <Link to={`${project.author.type ==="Organization" ? "/organize":'/users'}/${project.author.login}`}>{project.author.name}</Link>
} }
<span className="ml5 mr5">/</span> <span className="ml5 mr5">/</span>
<Link to={`/projects/${owner}/${projectsId}`} className="projectN mt6">{project && project.name}</Link> <Link to={`/projects/${owner}/${projectsId}`} className="projectN mt6">{projectDetail && projectDetail.name}</Link>
</div> </div>
{ projectDetail && projectDetail.private && <span className="privateTag mt6">私有</span>} { projectDetail && projectDetail.private && <span className="privateTag mt6">私有</span>}
</AlignTop> </AlignTop>

View File

@ -159,14 +159,10 @@ class merge extends Component {
<Menu.Item key={"all"} onClick={(e) => this.getOption(e, id, name)}> <Menu.Item key={"all"} onClick={(e) => this.getOption(e, id, name)}>
{name} {name}
</Menu.Item> </Menu.Item>
{array && {array && array.length > 0 && array.map((item, key) => {
array.length > 0 &&
array.map((item, key) => {
return ( return (
<Menu.Item ((!item.permission) || (item.permission && item.permission !== "Reporter")) &&
key={item.id} <Menu.Item key={item.id} onClick={(e) => this.getOption(e, id, item.name)}>
onClick={(e) => this.getOption(e, id, item.name)}
>
{item.name} {item.name}
</Menu.Item> </Menu.Item>
); );

View File

@ -346,18 +346,20 @@ class MergeForm extends Component {
</Select> </Select>
)} )}
</Form.Item> </Form.Item>
<Form.Item name="checkbox-group" label="其他"> <Form.Item label="其他">
<Checkbox.Group> {getFieldDecorator("checkbox-group")(
<div> <Checkbox.Group>
<Checkbox value="A">必须审查代码</Checkbox> <div>
</div> <Checkbox value="A">必须审查代码</Checkbox>
<div> </div>
<Checkbox value="B">合并后删除提交分支</Checkbox> <div>
</div> <Checkbox value="B">合并后删除提交分支</Checkbox>
<div> </div>
<Checkbox value="C">合并后关闭提到的任务</Checkbox> <div>
</div> <Checkbox value="C">合并后关闭提到的任务</Checkbox>
</Checkbox.Group> </div>
</Checkbox.Group>
)}
</Form.Item> </Form.Item>
</div> </div>
</div> </div>

View File

@ -92,10 +92,10 @@ class order_form extends Component {
const url = `/${owner}/${projectsId}/issues/new.json`; const url = `/${owner}/${projectsId}/issues/new.json`;
axios.get(url).then((result) => { axios.get(url).then((result) => {
if (result) { if (result && result.data) {
this.setState({ this.setState({
issue_chosen: result.data.issue_chosen, issue_chosen: result.data.issue_chosen,
branches: result.data.branches, branches: result.data.issue_chosen.branches,
isSpin:false isSpin:false
}); });