From 2a07fe78fcdd1801aa595d683860ec06770ef1b7 Mon Sep 17 00:00:00 2001
From: "Joseph.Rawlings"
Date: Fri, 5 Dec 2025 06:31:54 -0500
Subject: [PATCH] fix: update storage quota checks to use 'meets or exceeds'
logic for better clarity
---
extensions/Servers/Proxmox/Livewire/Storage.php | 6 +++---
extensions/Servers/Proxmox/views/storage.blade.php | 8 ++++----
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/extensions/Servers/Proxmox/Livewire/Storage.php b/extensions/Servers/Proxmox/Livewire/Storage.php
index d0112753c..7569ab177 100644
--- a/extensions/Servers/Proxmox/Livewire/Storage.php
+++ b/extensions/Servers/Proxmox/Livewire/Storage.php
@@ -1084,9 +1084,9 @@ class Storage extends Component
}
// The drive being reattached is already counted in totalAllocatedStorage (which includes unused drives)
- // So we just need to check if the total exceeds the max
- if ($this->totalAllocatedStorage > $this->maxAllowedStorage && $this->maxAllowedStorage > 0) {
- $this->notify('Storage quota exceeded. Total storage (' . number_format($this->totalAllocatedStorage, 1) . ' GB) exceeds your plan allocation (' . number_format($this->maxAllowedStorage, 1) . ' GB). Please upgrade your service or delete drives to allow this configuration.', 'error');
+ // So we just need to check if the total meets or exceeds the max
+ if ($this->totalAllocatedStorage >= $this->maxAllowedStorage && $this->maxAllowedStorage > 0) {
+ $this->notify('Storage quota reached. Total storage (' . number_format($this->totalAllocatedStorage, 1) . ' GB) meets or exceeds your plan allocation (' . number_format($this->maxAllowedStorage, 1) . ' GB). Please upgrade your service or delete drives to allow this configuration.', 'error');
return;
}
diff --git a/extensions/Servers/Proxmox/views/storage.blade.php b/extensions/Servers/Proxmox/views/storage.blade.php
index 76e4727be..0a97ea791 100644
--- a/extensions/Servers/Proxmox/views/storage.blade.php
+++ b/extensions/Servers/Proxmox/views/storage.blade.php
@@ -336,11 +336,11 @@
- Storage quota exceeded ({{ number_format($totalAllocatedStorage, 1) }} GB / {{ number_format($maxAllowedStorage, 1) }} GB). Reattaching drives is disabled. Please upgrade your service or delete drives to allow this configuration.
+ Storage quota reached ({{ number_format($totalAllocatedStorage, 1) }} GB / {{ number_format($maxAllowedStorage, 1) }} GB). Reattaching drives is disabled. Please upgrade your service or delete drives to allow this configuration.