Fix copy on /cluster/disks page
@@ -122,7 +122,11 @@ export class VolumesRaw extends React.Component<Props, States> {
<>
<IconButtonWithTooltip
disabled={rowData.get("isInUse")}
- tooltipTitle={rowData.get("isInUse") ? "This disk in in used and can't be removed" : "Delete"}
+ tooltipTitle={
+ rowData.get("isInUse")
+ ? "The disk must be unmounted(removed) from all associated components before it can be deleted"
+ : "Delete"
+ }
onClick={() => {
this.showDeleteConfirmDialog(rowData);
}}
@@ -198,7 +202,7 @@ export class VolumesRaw extends React.Component<Props, States> {
};
private renderUse = (rowData: RowData) => {
- return rowData.get("isInUse") ? "True" : "False";
+ return rowData.get("isInUse") ? "Yes" : "No";
};
private renderPhase = (rowData: RowData) => {
@@ -276,12 +280,12 @@ export class VolumesRaw extends React.Component<Props, States> {
paging: tableData.length > 20,
}}
columns={[
- { title: "Name", field: "name", sorting: false, render: this.renderName },
- { title: "Is In Use", field: "isInUse", sorting: false, render: this.renderUse },
- { title: "Application", field: "componentNamespace", sorting: false, render: this.renderApplication },
- { title: "Component Name", field: "componentName", sorting: false, render: this.renderComponent },
+ { title: "Volume Name", field: "name", sorting: false, render: this.renderName },
+ { title: "Mounted", field: "isInUse", sorting: false, render: this.renderUse },
+ { title: "App", field: "componentNamespace", sorting: false, render: this.renderApplication },
+ { title: "Component", field: "componentName", sorting: false, render: this.renderComponent },
{ title: "Phase", field: "phase", sorting: false, render: this.renderPhase },
- { title: "Capacity", field: "capacity", sorting: false, render: this.renderCapacity },
+ { title: "Size", field: "capacity", sorting: false, render: this.renderCapacity },
{
title: "Actions",
field: "action",
