2024-01-22 15:08:18 +00:00
< div >
< h2 > Resource Operations </ h2 >
2025-01-09 13:13:09 +00:00
< div > You can easily make different kind of operations on this resource .</ div >
2025-01-13 10:14:00 +00:00
{{ --
2025-01-09 13:13:09 +00:00
< 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 >
2025-01-13 10:14:00 +00:00
</ div > -- }}
2025-01-09 13:13:09 +00:00
2024-05-02 07:49:10 +00:00
< h3 > Clone </ h3 >
2025-01-09 13:13:09 +00:00
< div class = " pb-4 " > To another project / environment on a different / same server .</ div >
2024-05-02 07:49:10 +00:00
< div class = " pb-4 " >
< div class = " flex flex-col flex-wrap gap-2 " >
2024-01-22 15:08:18 +00:00
@ foreach ( $servers -> sortBy ( 'id' ) as $server )
2024-05-08 21:48:44 +00:00
< h5 > Server : < span class = " font-bold text-dark dark:text-white " > {{ $server -> name }} </ span ></ h5 >
2024-05-02 07:49:10 +00:00
@ foreach ( $server -> destinations () as $destination )
2024-09-04 17:34:47 +00:00
< x - modal - confirmation
title = " Clone Resource? "
buttonTitle = " Clone Resource "
submitAction = " cloneTo( { { data_get( $destination , 'id') }}) "
: actions = " [
'All containers of this resource will be duplicated and cloned to the selected destination.'
] "
: confirmWithText = " false "
: confirmWithPassword = " false "
step2ButtonText = " Clone Resource "
dispatchEvent = " true "
dispatchEventType = " success "
dispatchEventMessage = " Resource cloned to { { $destination->name }} destination. "
>
2024-05-02 07:49:10 +00:00
< x : slot name = " content " >
< div class = " box group " >
< div class = " flex flex-col " >
< div class = " box-title " > Network </ div >
< div class = " box-description " > {{ $destination -> name }} </ div >
</ div >
</ div >
</ x : slot >
</ x - modal - confirmation >
@ endforeach
2024-01-22 15:08:18 +00:00
@ endforeach
</ div >
</ div >
2024-05-02 07:49:10 +00:00
< h3 > Move </ h3 >
< div class = " pb-4 " > Between projects / environments .</ div >
2024-01-22 15:08:18 +00:00
< div >
2024-05-02 07:49:10 +00:00
< div class = " pb-2 " >
2024-01-22 15:08:18 +00:00
This resource is currently in the < span
2024-03-25 09:41:44 +00:00
class = " font-bold dark:text-warning " > {{ $resource -> environment -> project -> name }} /
2024-01-22 15:08:18 +00:00
{{ $resource -> environment -> name }} </ span > environment .
</ div >
2024-05-02 07:49:10 +00:00
< div class = " flex flex-col flex-wrap gap-2 " >
2024-01-22 15:08:18 +00:00
@ forelse ( $projects as $project )
2024-05-08 21:48:44 +00:00
< h5 > Project : < span class = " font-bold text-dark dark:text-white " > {{ $project -> name }} </ span ></ h5 >
2024-05-02 07:49:10 +00:00
@ foreach ( $project -> environments as $environment )
2024-09-04 17:34:47 +00:00
< x - modal - confirmation
title = " Move Resource? "
buttonTitle = " Move Resource "
submitAction = " moveTo( { { data_get( $environment , 'id') }}) "
: actions = " [
'All containers of this resource will be moved to the selected environment.'
] "
: confirmWithText = " false "
: confirmWithPassword = " false "
step2ButtonText = " Move Resource "
dispatchEvent = " true "
dispatchEventType = " success "
dispatchEventMessage = " Resource moved to { { $environment->name }} environment. "
>
< x : slot : content >
2024-05-02 07:49:10 +00:00
< div class = " box group " >
< div class = " flex flex-col " >
< div class = " box-title " > Environment </ div >
< div class = " box-description " > {{ $environment -> name }} </ div >
2024-03-25 09:41:44 +00:00
</ div >
2024-05-02 07:49:10 +00:00
</ div >
</ x : slot >
</ x - modal - confirmation >
@ endforeach
2024-01-22 15:08:18 +00:00
@ empty
< div > No projects found to move to </ div >
@ endforelse
</ div >
</ div >
</ div >