Feat: Environment variabel deletion

This commit is contained in:
ayntk-ai
2024-09-04 19:41:10 +02:00
parent a29353c1ae
commit 7fe3b78d45

View File

@@ -20,10 +20,20 @@
<path d="M11 16a1 1 0 1 0 2 0a1 1 0 0 0-2 0m-3-5V7a4 4 0 1 1 8 0v4" /> <path d="M11 16a1 1 0 1 0 2 0a1 1 0 0 0-2 0m-3-5V7a4 4 0 1 1 8 0v4" />
</g> </g>
</svg> </svg>
<x-modal-confirmation isErrorButton buttonTitle="Delete"> <x-modal-confirmation
You will delete environment variable <span title="Confirm Environment Variable Deletion?"
class="font-bold dark:text-warning text-coollabs">{{ $env->key }}</span>. isErrorButton
</x-modal-confirmation> buttonTitle="Delete"
submitAction="delete"
:actions="[
'The selected environment variable will be permanently deleted.'
]"
confirmationText="{{ $env->key }}"
confirmationLabel="Please confirm the execution of the actions by entering the Environment Variable Name below"
shortConfirmationLabel="Environment Variable Name"
:confirmWithPassword="false"
step2ButtonText="Permanently Delete Environment Variable"
/>
</div> </div>
@else @else
@if ($isDisabled) @if ($isDisabled)
@@ -79,10 +89,20 @@
<x-forms.button wire:click='lock'> <x-forms.button wire:click='lock'>
Lock Lock
</x-forms.button> </x-forms.button>
<x-modal-confirmation isErrorButton buttonTitle="Delete"> <x-modal-confirmation
You will delete environment variable <span title="Confirm Environment Variable Deletion?"
class="font-bold dark:text-warning">{{ $env->key }}</span>. isErrorButton
</x-modal-confirmation> buttonTitle="Delete"
submitAction="delete"
:actions="[
'The selected environment variable will be permanently deleted.'
]"
confirmationText="{{ $env->key }}"
confirmationLabel="Please confirm the execution of the actions by entering the Environment Variable Name below"
shortConfirmationLabel="Environment Variable Name"
:confirmWithPassword="false"
step2ButtonText="Permanently Delete Environment Variable"
/>
@else @else
<x-forms.button type="submit"> <x-forms.button type="submit">
Update Update
@@ -90,10 +110,20 @@
<x-forms.button wire:click='lock'> <x-forms.button wire:click='lock'>
Lock Lock
</x-forms.button> </x-forms.button>
<x-modal-confirmation buttonFullWidth isErrorButton buttonTitle="Delete"> <x-modal-confirmation
You will delete environment variable <span title="Confirm Environment Variable Deletion?"
class="font-bold dark:text-warning">{{ $env->key }}</span>. isErrorButton
</x-modal-confirmation> buttonTitle="Delete"
submitAction="delete"
:actions="[
'The selected environment variable will be permanently deleted.'
]"
confirmationText="{{ $env->key }}"
confirmationLabel="Please confirm the execution of the actions by entering the Environment Variable Name below"
shortConfirmationLabel="Environment Variable Name"
:confirmWithPassword="false"
step2ButtonText="Permanently Delete Environment Variable"
/>
@endif @endif
</div> </div>
@endif @endif