Skip to content

Commit 0dcd2ca

Browse files
artongenextcloud-command
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 <[email protected]> Signed-off-by: nextcloud-command <[email protected]> Signed-off-by: nextcloud-command <[email protected]>
1 parent 7e4b0c9 commit 0dcd2ca

3 files changed

Lines changed: 5 additions & 5 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

dist/files-main.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files-main.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)