Skip to content

Commit bfba17c

Browse files
artongebackportbot[bot]
authored andcommitted
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> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com> [skip ci]
1 parent fa6f516 commit bfba17c

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
@@ -98,7 +98,7 @@ export default {
9898
// specific to that situation anyhow. So this covers warning covers
9999
// our primary day-to-day concern (individual account quota usage).
100100
//
101-
if (this.storageStats?.quota > 0 && this.storageStats?.free <= 0) {
101+
if (this.storageStats?.quota > 0 && this.storageStats?.free === 0) {
102102
this.showStorageFullWarning()
103103
}
104104
},
@@ -133,7 +133,7 @@ export default {
133133
134134
// Warn the user if the available account storage changed from > 0 to 0
135135
// (unless only because quota was intentionally set to 0 by admin in the interim)
136-
if (this.storageStats?.free > 0 && response.data.data?.free <= 0 && response.data.data?.quota > 0) {
136+
if (this.storageStats?.free > 0 && response.data.data?.free === 0 && response.data.data?.quota > 0) {
137137
this.showStorageFullWarning()
138138
}
139139

0 commit comments

Comments
 (0)