|
|
@ -43,7 +43,6 @@ type InterfaceSummaryState = {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
class InterfaceSummary extends Component<InterfaceSummaryProps, InterfaceSummaryState> {
|
|
|
|
class InterfaceSummary extends Component<InterfaceSummaryProps, InterfaceSummaryState> {
|
|
|
|
static contextTypes = {
|
|
|
|
static contextTypes = {
|
|
|
|
onAddForeignRoomCase: PropTypes.func.isRequired,
|
|
|
|
|
|
|
|
onDeleteInterface: PropTypes.func.isRequired,
|
|
|
|
onDeleteInterface: PropTypes.func.isRequired,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
constructor(props: any) {
|
|
|
|
constructor(props: any) {
|
|
|
@ -264,17 +263,6 @@ class InterfaceSummary extends Component<InterfaceSummaryProps, InterfaceSummary
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
handleUpdate = () => { /** empty */ }
|
|
|
|
handleUpdate = () => { /** empty */ }
|
|
|
|
createCase = (e: any, repositoryId: any, interfaceId: any, name: any) => {
|
|
|
|
|
|
|
|
e.preventDefault()
|
|
|
|
|
|
|
|
this.setState({ name })
|
|
|
|
|
|
|
|
const { onAddForeignRoomCase } = this.context
|
|
|
|
|
|
|
|
onAddForeignRoomCase({
|
|
|
|
|
|
|
|
id: repositoryId,
|
|
|
|
|
|
|
|
itf: interfaceId,
|
|
|
|
|
|
|
|
name,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
// itf.repositoryId
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const mapStateToProps = (state: RootState) => ({
|
|
|
|
const mapStateToProps = (state: RootState) => ({
|
|
|
|
room: state.foreign,
|
|
|
|
room: state.foreign,
|
|
|
|