fix: tag mass redeployments

This commit is contained in:
Andras Bacsai
2024-10-04 10:22:58 +02:00
parent 65aeebd9fa
commit 2ca73695b3
2 changed files with 15 additions and 24 deletions

View File

@@ -20,18 +20,14 @@
<div class="w-[500px]"> <div class="w-[500px]">
<x-forms.input readonly label="Deploy Webhook URL" id="webhook" /> <x-forms.input readonly label="Deploy Webhook URL" id="webhook" />
</div> </div>
<x-modal-confirmation <x-modal-confirmation title="Redeploy all resources with this tag?" isHighlighted
title="Redeploy all resources with this tag?" buttonTitle="Redeploy All" submitAction="redeploy_all" :actions="[
isHighlighted 'All resources with this tag will be redeployed.',
buttonTitle="Redeploy All" 'During redeploy resources will be temporarily unavailable.',
submitAction="redeploy_all" ]"
:actions="['All resources with this tag will be redeployed.', 'During redeploy resources will be temporarily unavailable.']" confirmationText="{{ $tag }}"
confirmationText="{{ $oneTag->name }}" confirmationLabel="Please confirm the execution of the actions by entering the Tag Name below"
confirmationLabel="Please confirm the execution of the actions by entering the Tag Name below" shortConfirmationLabel="Tag Name" :confirmWithPassword="false" step2ButtonText="Redeploy All" />
shortConfirmationLabel="Tag Name"
:confirmWithPassword="false"
step2ButtonText="Redeploy All"
/>
</div> </div>
<div class="grid grid-cols-1 gap-2 pt-4 lg:grid-cols-2 xl:grid-cols-3"> <div class="grid grid-cols-1 gap-2 pt-4 lg:grid-cols-2 xl:grid-cols-3">
@foreach ($applications as $application) @foreach ($applications as $application)

View File

@@ -24,18 +24,13 @@
<div class="w-[500px]"> <div class="w-[500px]">
<x-forms.input readonly label="Deploy Webhook URL" id="webhook" /> <x-forms.input readonly label="Deploy Webhook URL" id="webhook" />
</div> </div>
<x-modal-confirmation <x-modal-confirmation title="Redeploy all resources with this tag?" isHighlighted buttonTitle="Redeploy All"
title="Redeploy all resources with this tag?" submitAction="redeploy_all" :actions="[
isHighlighted 'All resources with this tag will be redeployed.',
buttonTitle="Redeploy All" 'During redeploy resources will be temporarily unavailable.',
submitAction="redeploy_all" ]" confirmationText="{{ $tag }}"
:actions="['All resources with this tag will be redeployed.', 'During redeploy resources will be temporarily unavailable.']" confirmationLabel="Please confirm the execution of the actions by entering the Tag Name below"
confirmationText="{{ $oneTag->name }}" shortConfirmationLabel="Tag Name" :confirmWithPassword="false" step2ButtonText="Redeploy All" />
confirmationLabel="Please confirm the execution of the actions by entering the Tag Name below"
shortConfirmationLabel="Tag Name"
:confirmWithPassword="false"
step2ButtonText="Redeploy All"
/>
</div> </div>
<div class="grid grid-cols-1 gap-2 pt-4 lg:grid-cols-2 xl:grid-cols-3"> <div class="grid grid-cols-1 gap-2 pt-4 lg:grid-cols-2 xl:grid-cols-3">
@foreach ($applications as $application) @foreach ($applications as $application)