Feat: preview deployments and typos

This commit is contained in:
ayntk-ai
2024-09-03 16:43:50 +02:00
parent f29bc52fa5
commit d5b7e9ed83
3 changed files with 27 additions and 10 deletions

View File

@@ -152,8 +152,17 @@
@endif @endif
</x-forms.button> </x-forms.button>
@if (data_get($preview, 'status') !== 'exited') @if (data_get($preview, 'status') !== 'exited')
<x-modal-confirmation isErrorButton <x-modal-confirmation
action="stop({{ data_get($preview, 'pull_request_id') }})"> title="Confirm Preview Deployment Stopping?"
buttonTitle="Stop"
submitAction="stop({{ data_get($preview, 'pull_request_id') }})"
:actions="['This preview deployment will be stopped.', 'If the preview deployment is currently in use data could be lost.', 'All non-persistent data of this preview deployment (containers, networks, unused images) will be deleted (don\'t worry, no data is lost and you can start the preview deployment again).']"
:confirmWithText="false"
:confirmWithPassword="false"
step2ButtonText="Stop Preview Deployment"
:dispatchEvent="true"
dispatchEventType="stopEvent"
>
<x-slot:customButton> <x-slot:customButton>
<svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5 text-error" <svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5 text-error"
viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none"
@@ -168,14 +177,22 @@
</svg> </svg>
Stop Stop
</x-slot:customButton> </x-slot:customButton>
This will stop the preview deployment. <br>Please think again.
</x-modal-confirmation> </x-modal-confirmation>
@endif @endif
<x-modal-confirmation isErrorButton <x-modal-confirmation
action="delete({{ data_get($preview, 'pull_request_id') }})" buttonTitle="Delete"> title="Confirm Preview Deployment Deletion?"
This will delete the preview deployment. <br>Please think again. buttonTitle="Delete"
</x-modal-confirmation> isErrorButton
submitAction="delete({{ data_get($preview, 'pull_request_id') }})"
:actions="['All containers of this preview deployment will be stopped and permanently deleted.']"
confirmationText="{{ data_get($preview, 'fqdn'). '/' }}"
confirmationLabel="Please confirm the execution of the actions by entering the Preview Deployment name below"
shortConfirmationLabel="Preview Deployment Name"
:confirmWithPassword="false"
:dispatchEvent="true"
dispatchEventType="deleteEvent"
dispatchEventMessage="Preview Deployment Deleted"
/>
</div> </div>
</div> </div>
@endforeach @endforeach

View File

@@ -33,7 +33,7 @@
title="Confirm Database Restart?" title="Confirm Database Restart?"
buttonTitle="Restart" buttonTitle="Restart"
submitAction="restart" submitAction="restart"
:actions="['This database will be restarted.', 'If the database is currently in active use data could be lost.']" :actions="['This database will be restarted.', 'If the database is currently in use data could be lost.']"
:confirmWithText="false" :confirmWithText="false"
:confirmWithPassword="false" :confirmWithPassword="false"
step2ButtonText="Restart Database" step2ButtonText="Restart Database"

View File

@@ -9,7 +9,7 @@
submitAction="delete" submitAction="delete"
:actions="[ :actions="[
'The init-script of this database will be permanently deleted.', 'The init-script of this database will be permanently deleted.',
'If you are actively using this init-script, it could cause errors on redeployments.' 'If you are actively using this init-script, it could cause errors on redeployment.'
]" ]"
confirmationText="{{ $filename }}" confirmationText="{{ $filename }}"
confirmationLabel="Please confirm the execution of the actions by entering the init-script name below" confirmationLabel="Please confirm the execution of the actions by entering the init-script name below"