Fetch VM configuration to calculate accurate total storage and update display in service view

This commit is contained in:
2025-12-06 12:35:56 -05:00
parent b27bbee8bb
commit d01289cd00
2 changed files with 90 additions and 1 deletions

View File

@@ -151,7 +151,14 @@
</span>
</div>
@endif
@if(isset($vmStatus['maxdisk']))
@if(isset($vmStatus['total_disk_bytes']))
<div class="flex items-center justify-between py-3 px-4 bg-background/50 rounded-xl">
<span class="text-color-muted text-sm font-medium flex items-center gap-2">
<x-ri-hard-drive-2-line class="size-4" /> Storage
</span>
<span class="font-bold text-color-base">{{ Illuminate\Support\Number::fileSize(bytes: $vmStatus['total_disk_bytes']) }}</span>
</div>
@elseif(isset($vmStatus['maxdisk']))
<div class="flex items-center justify-between py-3 px-4 bg-background/50 rounded-xl">
<span class="text-color-muted text-sm font-medium flex items-center gap-2">
<x-ri-hard-drive-2-line class="size-4" /> Storage