|
|
@ -295,8 +295,8 @@ class Cluster extends React.Component {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div className="product">
|
|
|
|
<div className="product">
|
|
|
|
{this.props.hasPermissionToManage && (
|
|
|
|
|
|
|
|
<div className="arrow">
|
|
|
|
<div className="arrow">
|
|
|
|
|
|
|
|
{this.props.hasPermissionToManage && (
|
|
|
|
<button
|
|
|
|
<button
|
|
|
|
disabled={index === 0}
|
|
|
|
disabled={index === 0}
|
|
|
|
className="btn"
|
|
|
|
className="btn"
|
|
|
@ -306,8 +306,8 @@ class Cluster extends React.Component {
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<Icon type="caret-left" theme="filled" />
|
|
|
|
<Icon type="caret-left" theme="filled" />
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
)}
|
|
|
|
)}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div className="product-icon">
|
|
|
|
<div className="product-icon">
|
|
|
|
<img src={imageSrc} />
|
|
|
|
<img src={imageSrc} />
|
|
|
|
<Tooltip title={packageId}>
|
|
|
|
<Tooltip title={packageId}>
|
|
|
@ -348,9 +348,14 @@ class Cluster extends React.Component {
|
|
|
|
<Spin spinning={loading}>
|
|
|
|
<Spin spinning={loading}>
|
|
|
|
<Row>
|
|
|
|
<Row>
|
|
|
|
<Col span={16}>
|
|
|
|
<Col span={16}>
|
|
|
|
|
|
|
|
{this.props.hasPermissionToManage && (
|
|
|
|
<Title editable={{ onChange: this.handleNameChange }} level={4}>
|
|
|
|
<Title editable={{ onChange: this.handleNameChange }} level={4}>
|
|
|
|
{name}
|
|
|
|
{name}
|
|
|
|
</Title>
|
|
|
|
</Title>
|
|
|
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
{!this.props.hasPermissionToManage && (
|
|
|
|
|
|
|
|
<Title level={4}>{name}</Title>
|
|
|
|
|
|
|
|
)}
|
|
|
|
</Col>
|
|
|
|
</Col>
|
|
|
|
<Col span={8}>
|
|
|
|
<Col span={8}>
|
|
|
|
{!isTemporary && this.props.hasPermissionToManage && (
|
|
|
|
{!isTemporary && this.props.hasPermissionToManage && (
|
|
|
@ -413,11 +418,14 @@ class Cluster extends React.Component {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
})}
|
|
|
|
})}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{this.props.hasPermissionToManage && (
|
|
|
|
<Row>
|
|
|
|
<Row>
|
|
|
|
<Col>
|
|
|
|
<Col>
|
|
|
|
{isTemporary && (
|
|
|
|
{isTemporary && (
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<Button onClick={this.cancelAddingNewCluster}>Cancel</Button>
|
|
|
|
<Button onClick={this.cancelAddingNewCluster}>
|
|
|
|
|
|
|
|
Cancel
|
|
|
|
|
|
|
|
</Button>
|
|
|
|
<Divider type="vertical" />
|
|
|
|
<Divider type="vertical" />
|
|
|
|
<Tooltip
|
|
|
|
<Tooltip
|
|
|
|
title={
|
|
|
|
title={
|
|
|
@ -458,6 +466,7 @@ class Cluster extends React.Component {
|
|
|
|
)}
|
|
|
|
)}
|
|
|
|
</Col>
|
|
|
|
</Col>
|
|
|
|
</Row>
|
|
|
|
</Row>
|
|
|
|
|
|
|
|
)}
|
|
|
|
</Spin>
|
|
|
|
</Spin>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
);
|
|
|
|