mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
24 lines
793 B
TypeScript
24 lines
793 B
TypeScript
/**
|
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
*/
|
|
import React from "react";
|
|
import type { KubeObjectMenuProps } from "../kube-object-menu";
|
|
import type { ReplicaSet } from "../../../common/k8s-api/endpoints";
|
|
import { MenuItem } from "../menu";
|
|
import { ReplicaSetScaleDialog } from "./replicaset-scale-dialog";
|
|
import { Icon } from "../icon";
|
|
|
|
export function ReplicaSetMenu(props: KubeObjectMenuProps<ReplicaSet>) {
|
|
const { object, toolbar } = props;
|
|
|
|
return (
|
|
<>
|
|
<MenuItem onClick={() => ReplicaSetScaleDialog.open(object)}>
|
|
<Icon material="open_with" tooltip="Scale" interactive={toolbar}/>
|
|
<span className="title">Scale</span>
|
|
</MenuItem>
|
|
</>
|
|
);
|
|
}
|