Skip to content

Commit db26a90

Browse files
committed
change dataset to container
1 parent a68031d commit db26a90

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/main/java/edu/harvard/iq/dataverse/EditDatafilesPage.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,9 +566,10 @@ public boolean isFileUploadCountExceeded() {
566566
*
567567
* @return cached formatted storage size. '1,234 bytes'; '1.23 GB'; '1.00 TB'
568568
*/
569-
public String getCurrentStorageUse() {
569+
public String getCurrentContainerStorageUse() {
570570
if (storageSizeStr == null) {
571-
storageSizeStr = StringUtil.formatBytes(datafileService.currentStorageSizeInBytes(dataset));
571+
Dataverse container = dataset.getOwner();
572+
storageSizeStr = StringUtil.formatBytes(datafileService.currentStorageSizeInBytes(container));
572573
}
573574
return storageSizeStr;
574575
}

src/main/webapp/editFilesFragment.xhtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
<f:param value="#{systemConfig.guidesVersion}"/>
100100
</h:outputFormat>
101101
<h:outputFormat value=" #{bundle['file.selectToAdd.tipTotalSizeUsed']}" escape="false">
102-
<f:param value="#{EditDatafilesPage.currentStorageUse}"/>
102+
<f:param value="#{EditDatafilesPage.currentContainerStorageUse}"/>
103103
</h:outputFormat>
104104
<h:outputFormat value=" #{bundle['file.selectToAdd.tipMaxNumFiles']}" escape="false"
105105
rendered="#{EditDatafilesPage.maxNumberOfFiles > 0}">

0 commit comments

Comments
 (0)