|
@@ -97,6 +97,7 @@ class CloudConnectionsView extends Component {
|
|
|
onConfirm: () => {
|
|
onConfirm: () => {
|
|
|
this.setState({ confirmationDialog: { visible: false }})
|
|
this.setState({ confirmationDialog: { visible: false }})
|
|
|
ConnectionsActions.deleteConnection(this.state.connection)
|
|
ConnectionsActions.deleteConnection(this.state.connection)
|
|
|
|
|
+ Location.push('/cloud-endpoints')
|
|
|
},
|
|
},
|
|
|
onCancel: () => {
|
|
onCancel: () => {
|
|
|
this.setState({ confirmationDialog: { visible: false }})
|
|
this.setState({ confirmationDialog: { visible: false }})
|
|
@@ -110,6 +111,10 @@ class CloudConnectionsView extends Component {
|
|
|
this.setState({ showModal: false })
|
|
this.setState({ showModal: false })
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ goBack() {
|
|
|
|
|
+ Location.push("/cloud-endpoints")
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
render() {
|
|
render() {
|
|
|
let item = this.state.connection
|
|
let item = this.state.connection
|
|
|
let title = "Edit Connection"
|
|
let title = "Edit Connection"
|
|
@@ -133,29 +138,26 @@ class CloudConnectionsView extends Component {
|
|
|
<Header title={title} linkUrl="/cloud-endpoints"/>
|
|
<Header title={title} linkUrl="/cloud-endpoints"/>
|
|
|
<div className={s.connectionHead}>
|
|
<div className={s.connectionHead}>
|
|
|
<div className={s.container}>
|
|
<div className={s.container}>
|
|
|
- <div className={s.connectionTypeImg + " icon small-cloud " + (item && item.type)}></div>
|
|
|
|
|
|
|
+ <div className="backBtn" onClick={(e) => this.goBack(e)}></div>
|
|
|
|
|
+ <div className={s.connectionTypeImg + " icon endpoint-white "}></div>
|
|
|
<div className={s.connectionInfo}>
|
|
<div className={s.connectionInfo}>
|
|
|
<h2>{item.name}</h2>
|
|
<h2>{item.name}</h2>
|
|
|
</div>
|
|
</div>
|
|
|
- <div className={s.connectionActions}>
|
|
|
|
|
- <button onClick={(e) => this.showEditConnectionModal(e)}>Edit</button>
|
|
|
|
|
- <button onClick={(e) => this.deleteConnection(e)} className="gray">Delete</button>
|
|
|
|
|
- </div>
|
|
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div className={s.container}>
|
|
<div className={s.container}>
|
|
|
<div className={s.sidebar}>
|
|
<div className={s.sidebar}>
|
|
|
- <Link
|
|
|
|
|
- to={"/cloud-endpoints/" + item.id + "/"}
|
|
|
|
|
- className={this.props.type == 'detail' ? "active" : ""}
|
|
|
|
|
- >Overview</Link>
|
|
|
|
|
- <Link
|
|
|
|
|
- to={"/cloud-endpoints/auth/" + item.id + "/"}
|
|
|
|
|
- className={this.props.type == 'auth' ? "active" : ""}
|
|
|
|
|
- >Authentication</Link>
|
|
|
|
|
|
|
+
|
|
|
</div>
|
|
</div>
|
|
|
<div className={s.content}>
|
|
<div className={s.content}>
|
|
|
|
|
+ <div className={s.connectionTypeImg + " icon large-cloud " + (item && item.type)}></div>
|
|
|
|
|
+ <br />
|
|
|
|
|
+
|
|
|
{React.cloneElement(this.props.children, { connection: item })}
|
|
{React.cloneElement(this.props.children, { connection: item })}
|
|
|
|
|
+
|
|
|
|
|
+ <button onClick={(e) => this.showEditConnectionModal(e)} className="gray">Edit Connection</button>
|
|
|
|
|
+ <br /><br />
|
|
|
|
|
+ <button onClick={(e) => this.deleteConnection(e)} className="wire">Delete</button>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<Modal
|
|
<Modal
|