Sfoglia il codice sorgente

Merge pull request #222 from smiclea/endpoint-id

Display the `ID` field in endpoint details page
Dorin Paslaru 8 anni fa
parent
commit
b188dd51e8

+ 5 - 1
src/components/organisms/EndpointDetailsContent/index.jsx

@@ -186,13 +186,17 @@ class EndpointDetailsContent extends React.Component<Props> {
 
   render() {
     this.renderedKeys = {}
-    const { type, name, description, created_at } = this.props.item || {}
+    const { type, name, description, created_at, id } = this.props.item || {}
     const usage = this.props.usage.replicas.concat(this.props.usage.migrations)
 
     return (
       <Wrapper>
         <EndpointLogos endpoint={type} />
         <Info>
+          <Field>
+            <Label>Id</Label>
+            {this.renderValue(id)}
+          </Field>
           <Field>
             <Label>Name</Label>
             {this.renderValue(name, 'name')}