fix(my-joy-beta): fix custom image on summary
This commit is contained in:
parent
a9ef5f91ba
commit
28f44d943f
@ -158,7 +158,9 @@ export const Meta = ({
|
|||||||
</Row>,
|
</Row>,
|
||||||
<Margin top={2} bottom={3}>
|
<Margin top={2} bottom={3}>
|
||||||
<Flex>
|
<Flex>
|
||||||
<Label>{image ? titleCase(image.name) : 'Custom Image'}</Label>
|
<Label>
|
||||||
|
{image && image.name ? titleCase(image.name) : 'Custom Image'}
|
||||||
|
</Label>
|
||||||
<VerticalDivider />
|
<VerticalDivider />
|
||||||
<Label>
|
<Label>
|
||||||
{brand === 'LX'
|
{brand === 'LX'
|
||||||
@ -354,9 +356,10 @@ export default withTheme(
|
|||||||
/>
|
/>
|
||||||
<CopiableField text={instance.id} label="ID" />
|
<CopiableField text={instance.id} label="ID" />
|
||||||
<CopiableField text={instance.compute_node} label="CN UUID" />
|
<CopiableField text={instance.compute_node} label="CN UUID" />
|
||||||
{instance.image && (
|
{instance.image &&
|
||||||
<CopiableField text={instance.image.id} label="Image UUID" />
|
instance.image.id && (
|
||||||
)}
|
<CopiableField text={instance.image.id} label="Image UUID" />
|
||||||
|
)}
|
||||||
<CopiableField
|
<CopiableField
|
||||||
text={`ssh root@${instance.primary_ip}`}
|
text={`ssh root@${instance.primary_ip}`}
|
||||||
label="Login"
|
label="Login"
|
||||||
|
@ -2,6 +2,7 @@ query instance($name: String) {
|
|||||||
machines(name: $name) {
|
machines(name: $name) {
|
||||||
id
|
id
|
||||||
state
|
state
|
||||||
|
brand
|
||||||
name
|
name
|
||||||
created
|
created
|
||||||
updated
|
updated
|
||||||
|
Loading…
Reference in New Issue
Block a user