feat: volume cloning for ResourceOperations
This commit is contained in:
@@ -1,8 +1,40 @@
|
||||
<div>
|
||||
<h2>Resource Operations</h2>
|
||||
<div class="pb-4">You can easily make different kind of operations on this resource.</div>
|
||||
<div>You can easily make different kind of operations on this resource.</div>
|
||||
|
||||
<div class="mt-8">
|
||||
<h3 class="text-lg font-bold mb-2">Clone Volume Data</h3>
|
||||
<div class="text-sm text-gray-600 dark:text-gray-300 mb-4">
|
||||
Clone your volume data to the new resources volumes. This process requires a brief container downtime to ensure data consistency.
|
||||
</div>
|
||||
<div class="pb-4">
|
||||
@if(!$cloneVolumeData)
|
||||
<div wire:key="volume-disabled">
|
||||
<x-modal-confirmation
|
||||
title="Enable Volume Data Cloning?"
|
||||
buttonTitle="Enable Volume Cloning"
|
||||
submitAction="toggleVolumeCloning(true)"
|
||||
:actions="['This will temporarily stop all the containers to copy the volume data to the new resources to ensure data consistency.', 'The process runs in the background and may take a few minutes.']"
|
||||
:confirmWithPassword="false"
|
||||
:confirmWithText="false"
|
||||
/>
|
||||
</div>
|
||||
@else
|
||||
<div wire:key="volume-enabled" class="max-w-md">
|
||||
<x-forms.checkbox
|
||||
label="Clone Volume Data"
|
||||
id="cloneVolumeData"
|
||||
wire:model="cloneVolumeData"
|
||||
wire:change="toggleVolumeCloning(false)"
|
||||
:checked="$cloneVolumeData"
|
||||
helper="Volume Data will be cloned to the new resources. Containers will be temporarily stopped during the cloning process." />
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3>Clone</h3>
|
||||
<div class="pb-4">To another project / environment on a different server.</div>
|
||||
<div class="pb-4">To another project / environment on a different / same server.</div>
|
||||
<div class="pb-4">
|
||||
<div class="flex flex-col flex-wrap gap-2">
|
||||
@foreach ($servers->sortBy('id') as $server)
|
||||
|
||||
Reference in New Issue
Block a user