mirror of
https://github.com/nextcloud/server.git
synced 2026-03-03 14:01:34 -05:00
fix: Show storage full warning when storage is actually full
< 0 values for "free" do not mean that the storage is full: 6befdd6dd7/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>
This commit is contained in:
parent
b5da085207
commit
d576efbb18
3 changed files with 5 additions and 5 deletions
|
|
@ -103,7 +103,7 @@ export default {
|
|||
// specific to that situation anyhow. So this covers warning covers
|
||||
// our primary day-to-day concern (individual account quota usage).
|
||||
//
|
||||
if (this.storageStats?.quota > 0 && this.storageStats?.free <= 0) {
|
||||
if (this.storageStats?.quota > 0 && this.storageStats?.free === 0) {
|
||||
this.showStorageFullWarning()
|
||||
}
|
||||
},
|
||||
|
|
@ -138,7 +138,7 @@ export default {
|
|||
|
||||
// Warn the user if the available account storage changed from > 0 to 0
|
||||
// (unless only because quota was intentionally set to 0 by admin in the interim)
|
||||
if (this.storageStats?.free > 0 && response.data.data?.free <= 0 && response.data.data?.quota > 0) {
|
||||
if (this.storageStats?.free > 0 && response.data.data?.free === 0 && response.data.data?.quota > 0) {
|
||||
this.showStorageFullWarning()
|
||||
}
|
||||
|
||||
|
|
|
|||
4
dist/files-main.js
vendored
4
dist/files-main.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files-main.js.map
vendored
2
dist/files-main.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue