mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Signed-off-by: Roman <ixrock@gmail.com> Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
46 lines
1.3 KiB
TypeScript
46 lines
1.3 KiB
TypeScript
import "./cluster-settings.scss";
|
|
|
|
import React from "react";
|
|
import { Link } from "react-router-dom";
|
|
import { observer } from "mobx-react";
|
|
import { Features } from "./features";
|
|
import { Removal } from "./removal";
|
|
import { Status } from "./status";
|
|
import { General } from "./general";
|
|
import { WizardLayout } from "../layout/wizard-layout";
|
|
import { ClusterIcon } from "../cluster-icon";
|
|
import { Icon } from "../icon";
|
|
import { getMatchedCluster } from "../cluster-manager/cluster-view.route";
|
|
|
|
@observer
|
|
export class ClusterSettings extends React.Component {
|
|
render() {
|
|
const cluster = getMatchedCluster();
|
|
const header = (
|
|
<>
|
|
<ClusterIcon
|
|
cluster={cluster}
|
|
showErrors={false}
|
|
showTooltip={false}
|
|
/>
|
|
<h2>{cluster.preferences.clusterName}</h2>
|
|
<Link to="/">
|
|
<Icon material="close" big/>
|
|
</Link>
|
|
</>
|
|
);
|
|
return (
|
|
<div className="ClusterSettings">
|
|
<WizardLayout header={header}>
|
|
<div className="settings-wrapper">
|
|
<Status cluster={cluster}></Status>
|
|
<General cluster={cluster}></General>
|
|
<Features cluster={cluster}></Features>
|
|
<Removal cluster={cluster}></Removal>
|
|
</div>
|
|
</WizardLayout>
|
|
</div>
|
|
);
|
|
}
|
|
}
|