mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix item menus for several pages (#4770)
This commit is contained in:
parent
09b33633f7
commit
2ad78c2a86
@ -58,9 +58,6 @@ export class ServiceAccounts extends React.Component<Props> {
|
||||
account.getNs(),
|
||||
account.getAge(),
|
||||
]}
|
||||
renderItemMenu={(item: ServiceAccount) => {
|
||||
return <ServiceAccountMenu object={item}/>;
|
||||
}}
|
||||
addRemoveButtons={{
|
||||
onAdd: () => CreateServiceAccountDialog.open(),
|
||||
addTooltip: "Create new Service Account",
|
||||
|
||||
@ -82,9 +82,6 @@ export class CronJobs extends React.Component<Props> {
|
||||
cronJob.getLastScheduleTime(),
|
||||
cronJob.getAge(),
|
||||
]}
|
||||
renderItemMenu={(item: CronJob) => {
|
||||
return <CronJobMenu object={item}/>;
|
||||
}}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
@ -91,7 +91,6 @@ export class Deployments extends React.Component<Props> {
|
||||
deployment.getAge(),
|
||||
this.renderConditions(deployment),
|
||||
]}
|
||||
renderItemMenu={item => <DeploymentMenu object={item} />}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
@ -70,9 +70,6 @@ export class ReplicaSets extends React.Component<Props> {
|
||||
replicaSet.getReady(),
|
||||
replicaSet.getAge(),
|
||||
]}
|
||||
renderItemMenu={(item: ReplicaSet) => {
|
||||
return <ReplicaSetMenu object={item}/>;
|
||||
}}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
@ -72,7 +72,6 @@ export class StatefulSets extends React.Component<Props> {
|
||||
<KubeObjectStatusIcon key="icon" object={statefulSet}/>,
|
||||
statefulSet.getAge(),
|
||||
]}
|
||||
renderItemMenu={item => <StatefulSetMenu object={item} />}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user