mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Add title for kube cluster details
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
5791843f26
commit
ab59a68e1b
@ -22,7 +22,7 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { KubernetesCluster } from "../../common/catalog-entities";
|
import { KubernetesCluster } from "../../common/catalog-entities";
|
||||||
import { CatalogEntityDetailRegistry, CatalogEntityDetailsProps } from "../../extensions/registries";
|
import { CatalogEntityDetailRegistry, CatalogEntityDetailsProps } from "../../extensions/registries";
|
||||||
import { DrawerItem } from "../components/drawer";
|
import { DrawerItem, DrawerTitle } from "../components/drawer";
|
||||||
|
|
||||||
export function initCatalogEntityDetailRegistry() {
|
export function initCatalogEntityDetailRegistry() {
|
||||||
CatalogEntityDetailRegistry.getInstance()
|
CatalogEntityDetailRegistry.getInstance()
|
||||||
@ -33,6 +33,7 @@ export function initCatalogEntityDetailRegistry() {
|
|||||||
components: {
|
components: {
|
||||||
Details: ({ entity }: CatalogEntityDetailsProps<KubernetesCluster>) => (
|
Details: ({ entity }: CatalogEntityDetailsProps<KubernetesCluster>) => (
|
||||||
<>
|
<>
|
||||||
|
<DrawerTitle title="Kubernetes Information" />
|
||||||
<div className="box grow EntityMetadata">
|
<div className="box grow EntityMetadata">
|
||||||
<DrawerItem name="Distribution">
|
<DrawerItem name="Distribution">
|
||||||
{entity.metadata.distro || "unknown"}
|
{entity.metadata.distro || "unknown"}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user