mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Allow extensions to register kube-object menus + details (#1108)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
1 parent
91bef77997
commit
99db7aca19
101 files changed
+7858
-1604
No files matched your search
@@ -82,20 +82,7 @@ export class PersistentVolumeClaims extends React.Component<Props> {
|
||||
{ title: pvc.getStatus(), className: pvc.getStatus().toLowerCase() },
|
||||
]
|
||||
}}
|
||||
renderItemMenu={(item: PersistentVolumeClaim) => {
|
||||
return <PersistentVolumeClaimMenu object={item}/>
|
||||
}}
|
||||
/>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
export function PersistentVolumeClaimMenu(props: KubeObjectMenuProps<PersistentVolumeClaim>) {
|
||||
return (
|
||||
<KubeObjectMenu {...props}/>
|
||||
)
|
||||
}
|
||||
|
||||
apiManager.registerViews(pvcApi, {
|
||||
Menu: PersistentVolumeClaimMenu,
|
||||
})
|
||||
Reference in new issue
Block a user