Skip to content

Commit cb2bc91

Browse files
committed
fix: Show storage full warning when storage is actually full
< 0 values for "free" do not mean that the storage is full: https://github.com/nextcloud/server/blob/6befdd6dd7cd20fe7f7036e4665bcfbb783d6803/lib/public/Files/FileInfo.php#L31-L42 Signed-off-by: Louis Chemineau <louis@chmn.me>
1 parent 6befdd6 commit cb2bc91

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/files/src/components/NavigationQuota.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export default {
103103
// specific to that situation anyhow. So this covers warning covers
104104
// our primary day-to-day concern (individual account quota usage).
105105
//
106-
if (this.storageStats?.quota > 0 && this.storageStats?.free <= 0) {
106+
if (this.storageStats?.quota > 0 && this.storageStats?.free === 0) {
107107
this.showStorageFullWarning()
108108
}
109109
},
@@ -138,7 +138,7 @@ export default {
138138
139139
// Warn the user if the available account storage changed from > 0 to 0
140140
// (unless only because quota was intentionally set to 0 by admin in the interim)
141-
if (this.storageStats?.free > 0 && response.data.data?.free <= 0 && response.data.data?.quota > 0) {
141+
if (this.storageStats?.free > 0 && response.data.data?.free === 0 && response.data.data?.quota > 0) {
142142
this.showStorageFullWarning()
143143
}
144144

0 commit comments

Comments
 (0)