Skip to content

Commit

Permalink
Fix #35: Now displaying the MaximumStorageSize in the settings page
Browse files Browse the repository at this point in the history
  • Loading branch information
amazy committed Nov 28, 2023
1 parent 62dfd76 commit 21a103d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
15 changes: 14 additions & 1 deletion WebApplication/src/components/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,18 @@ export default {
return (Math.round(this.statistics.TotalDiskSizeMB/1024*100) / 100) + " GB";
}
return this.statistics.TotalDiskSizeMB + " MB";
},
hasMaxStorageSize() {
return this.system.MaximumStorageSize > 0;
},
maxStorageSize() {
if (this.system.MaximumStorageSize > 1024*1024) {
return (Math.round(this.system.MaximumStorageSize/(1024*1024)*100) / 100) + " TB";
}
else if (this.statistics.TotalDiskSizeMB > 1024) {
return (Math.round(this.system.MaximumStorageSize/1024*100) / 100) + " GB";
}
return this.system.MaximumStorageSize + " MB";
}
},
}
Expand All @@ -61,7 +73,8 @@ export default {
</tr>
<tr>
<th scope="row" class="header">{{$t('storage_size')}}</th>
<td class="value">{{ totalDiskSize }}</td>
<td v-if="!hasMaxStorageSize" class="value">{{ totalDiskSize }}</td>
<td v-if="hasMaxStorageSize" class="value">{{ totalDiskSize }} / {{ maxStorageSize }} ( {{ system.MaximumStorageMode }})</td>
</tr>
</tbody>
</table>
Expand Down
9 changes: 5 additions & 4 deletions release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ Pending changes
===============

Changes:
- added a button to download multiple studies at once (only available if running an
- Added a button to download multiple studies at once (only available if running an
Orthanc version > 1.12.1 - not officially released at the time this plugin was
released)
- new configuration "UiOptions.ShowSamePatientStudiesFilter" to list the tags that
- Bew configuration "UiOptions.ShowSamePatientStudiesFilter" to list the tags that
are used to identify studies belonging to the same patient.
- added Russian translations
- added a button to share multiple studies at once.
- Added Russian translations
- Added a button to share multiple studies at once.
- Now displaying the MaximumStorageSize in the settings page.


1.1.3 (2023-10-04)
Expand Down

0 comments on commit 21a103d

Please sign in to comment.