feat: Implement asynchronous VM power operations and refactor vCenter snapshot retrieval to use API calls.

This commit is contained in:
pbao9
2026-01-27 16:35:42 +07:00
parent bfb5f9f4a5
commit 057ba58760
16 changed files with 2869 additions and 2521 deletions
@@ -159,11 +159,11 @@
<td class="text-muted">vCenter:</td>
<td>
@if (
isset($product->ipaddress) &&
isset($product->ipaddress->host) &&
isset($product->ipaddress->host->datacenter) &&
isset($product->ipaddress->host->datacenter->vCenter)
)
isset($product->ipaddress) &&
isset($product->ipaddress->host) &&
isset($product->ipaddress->host->datacenter) &&
isset($product->ipaddress->host->datacenter->vCenter)
)
{{ $product->ipaddress->host->datacenter->vCenter->host ?? 'N/A' }}
@else
N/A
@@ -249,7 +249,7 @@
<div class="col-md-3 col-sm-6 mb-2">
<button type="button" data-toggle="modal" data-target="#modal-lg"
class="btn btn-outline-secondary btn-block" data-ajax="{{ route('task.reinstall') }}">
<i class="fas fa-download"></i> Cài lại
Cài lại
</button>
</div>
</div>