mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Add URL display to weblink URLs (#4046)
This commit is contained in:
1 parent
86da6260b6
commit
f12b0658ba
2 files changed
+21
-4
No files matched your search
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
|
||||
import React from "react";
|
||||
import { KubernetesCluster } from "../../common/catalog-entities";
|
||||
import { KubernetesCluster, WebLink } from "../../common/catalog-entities";
|
||||
import { CatalogEntityDetailRegistry, CatalogEntityDetailsProps } from "../../extensions/registries";
|
||||
import { DrawerItem, DrawerTitle } from "../components/drawer";
|
||||
|
||||
@@ -45,6 +45,20 @@ export function initCatalogEntityDetailRegistry() {
|
||||
</>
|
||||
),
|
||||
},
|
||||
}
|
||||
},
|
||||
{
|
||||
apiVersions: [WebLink.apiVersion],
|
||||
kind: WebLink.kind,
|
||||
components: {
|
||||
Details: ({ entity }: CatalogEntityDetailsProps<WebLink>) => (
|
||||
<>
|
||||
<DrawerTitle title="More Information" />
|
||||
<DrawerItem name="URL">
|
||||
{entity.spec.url}
|
||||
</DrawerItem>
|
||||
</>
|
||||
),
|
||||
},
|
||||
},
|
||||
]);
|
||||
}
|
||||
Reference in new issue
Block a user