Просмотр исходного кода

Display the `ID` field in endpoint details page

Sergiu Miclea 8 лет назад
Родитель
Сommit
76e261c905
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      src/components/organisms/EndpointDetailsContent/index.jsx

+ 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')}