Skip to content

Commit

Permalink
Added "Allocated Space column" + application constants
Browse files Browse the repository at this point in the history
Signed-off-by: Brooklyn Dewolf <contact@brooklyn.gent>
  • Loading branch information
Brooklyn authored and sandrobonazzola committed Jul 19, 2024
1 parent f7faa00 commit 7d868bf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1408,6 +1408,8 @@ public interface ApplicationConstants extends CommonApplicationConstants {

String totalSpaceStorage();

String allocatedSpaceStorage();

String attachDataStorage();

String attachIsoStorage();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,15 @@ public SafeHtml getTooltip(StorageDomain object) {
};
getTable().addColumn(confirmedFreeSpaceColumn, constants.confirmedFreeSpaceStorage(), "180px"); //$NON-NLS-1$

AbstractStorageSizeColumn<StorageDomain> allocatedSpaceColumn = new AbstractStorageSizeColumn<StorageDomain>() {
@Override
public Long getRawValue(StorageDomain object) {
Integer allocatedSpace = object.getCommittedDiskSize();
return allocatedSpace == null ? null : Long.valueOf(allocatedSpace);
}
};
getTable().addColumn(allocatedSpaceColumn, constants.allocatedSpaceStorage(), "130px"); //$NON-NLS-1$

AbstractTextColumn<StorageDomain> descriptionColumn = new AbstractTextColumn<StorageDomain>() {
@Override
public String getValue(StorageDomain object) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,7 @@ freeSpaceDisksTree=Free Space
freeSpaceGBVolumeBrick=Free Space (GB)
freeSpaceStorage=Free Space (GB)
confirmedFreeSpaceStorage=Guaranteed Free Space (GB)
allocatedSpaceStorage=Allocated Space (GB)
confirmedFreeSpaceStorageNonThinTooltip=This storage domain is not thin provisioned, so all free space is available for use.
confirmedFreeSpaceStorageThinTooltip=This storage domain lies on a thin provisioned device, which means that not all of the free space may be available for use; however, you are guaranteed to be able to use at least this amount.
freeStorage=Free Storage
Expand Down

0 comments on commit 7d868bf

Please sign in to comment.