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

Merge pull request #362 from smiclea/appliance-id

Add appliance id field to licence info
Dorin Paslaru 7 лет назад
Родитель
Сommit
a5554b9e2d

+ 9 - 0
src/components/organisms/Licence/Licence.jsx

@@ -23,6 +23,7 @@ import Button from '../../atoms/Button'
 import LoadingButton from '../../molecules/LoadingButton'
 import StatusImage from '../../atoms/StatusImage'
 import TextArea from '../../atoms/TextArea'
+import CopyValue from '../../atoms/CopyValue'
 
 import StyleProps from '../../styleUtils/StyleProps'
 import Palette from '../../styleUtils/Palette'
@@ -279,6 +280,14 @@ class LicenceC extends React.Component<Props, State> {
             </LicenceRowDescription>
           </LicenceRowContent>
         </LicenceRow>
+        <LicenceRow>
+          <LicenceRowContent>
+            <LicenceRowLabel>Appliance ID</LicenceRowLabel>
+            <LicenceRowDescription>
+              <CopyValue value={info.applianceId} />
+            </LicenceRowDescription>
+          </LicenceRowContent>
+        </LicenceRow>
       </LicenceInfoWrapper>
     )
   }

+ 1 - 0
src/sources/LincenceSource.js

@@ -31,6 +31,7 @@ class LicenceSource {
       performedReplicas: root.performed_replicas,
       totalMigations: root.total_migrations,
       totalReplicas: root.total_replicas,
+      applianceId: root.appliance_id,
     })
   }
 

+ 1 - 0
src/types/Licence.js

@@ -21,4 +21,5 @@ export type Licence = {
   performedReplicas: number,
   totalMigations: number,
   totalReplicas: number,
+  applianceId: string,
 }