diff options
author | Louis Chemineau <louis@chmn.me> | 2024-09-25 13:53:54 +0200 |
---|---|---|
committer | nextcloud-command <nextcloud-command@users.noreply.github.com> | 2024-09-26 08:58:31 +0000 |
commit | 85053160699fe9acffa7c93995a22e704a545067 (patch) | |
tree | e41909af3210e800140a9b585e201bfc09ce67e0 /apps | |
parent | fa6f516c3c20abb68a91532af7b8c18dbfbb5aa9 (diff) | |
download | nextcloud-server-85053160699fe9acffa7c93995a22e704a545067.tar.gz nextcloud-server-85053160699fe9acffa7c93995a22e704a545067.zip |
fix: Show storage full warning when storage is actually fullbackport/48354/stable28
< 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>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/src/components/NavigationQuota.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/src/components/NavigationQuota.vue b/apps/files/src/components/NavigationQuota.vue index 8f96481232d..6e15f14041e 100644 --- a/apps/files/src/components/NavigationQuota.vue +++ b/apps/files/src/components/NavigationQuota.vue @@ -98,7 +98,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() } }, @@ -133,7 +133,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() } |