mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-20 02:17:09 +00:00
fix(environment-variable): keep delete button compact
This commit is contained in:
1 parent
34e6a6dd5d
commit
59605fe7d3
2 files changed
+8
-2
No files matched your search
@@ -275,7 +275,7 @@
|
|||||||
<x-forms.button wire:click='lock'>Lock</x-forms.button>
|
<x-forms.button wire:click='lock'>Lock</x-forms.button>
|
||||||
<x-modal-confirmation title="Confirm Environment Variable Deletion?" isErrorButton buttonTitle="Delete"
|
<x-modal-confirmation title="Confirm Environment Variable Deletion?" isErrorButton buttonTitle="Delete"
|
||||||
submitAction="delete" :actions="['The selected environment variable will be permanently deleted.']"
|
submitAction="delete" :actions="['The selected environment variable will be permanently deleted.']"
|
||||||
confirmationText="{{ $key }}" buttonFullWidth="true"
|
confirmationText="{{ $key }}"
|
||||||
confirmationLabel="Please confirm the execution of the actions by entering the Environment Variable Name below"
|
confirmationLabel="Please confirm the execution of the actions by entering the Environment Variable Name below"
|
||||||
shortConfirmationLabel="Environment Variable Name" :confirmWithPassword="false"
|
shortConfirmationLabel="Environment Variable Name" :confirmWithPassword="false"
|
||||||
step2ButtonText="Permanently Delete" />
|
step2ButtonText="Permanently Delete" />
|
||||||
@@ -284,7 +284,7 @@
|
|||||||
<x-forms.button wire:click='lock'>Lock</x-forms.button>
|
<x-forms.button wire:click='lock'>Lock</x-forms.button>
|
||||||
<x-modal-confirmation title="Confirm Environment Variable Deletion?" isErrorButton buttonTitle="Delete"
|
<x-modal-confirmation title="Confirm Environment Variable Deletion?" isErrorButton buttonTitle="Delete"
|
||||||
submitAction="delete" :actions="['The selected environment variable will be permanently deleted.']"
|
submitAction="delete" :actions="['The selected environment variable will be permanently deleted.']"
|
||||||
confirmationText="{{ $key }}" buttonFullWidth="true"
|
confirmationText="{{ $key }}"
|
||||||
confirmationLabel="Please confirm the execution of the actions by entering the Environment Variable Name below"
|
confirmationLabel="Please confirm the execution of the actions by entering the Environment Variable Name below"
|
||||||
shortConfirmationLabel="Environment Variable Name" :confirmWithPassword="false"
|
shortConfirmationLabel="Environment Variable Name" :confirmWithPassword="false"
|
||||||
step2ButtonText="Permanently Delete" />
|
step2ButtonText="Permanently Delete" />
|
||||||
|
|||||||
@@ -21,6 +21,12 @@ it('uses distinct keyed branches for the edit value field modes', function () {
|
|||||||
->toContain('wire:key="env-show-value-input-{{ $env->id }}"');
|
->toContain('wire:key="env-show-value-input-{{ $env->id }}"');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('keeps the environment variable delete button compact', function () {
|
||||||
|
$view = file_get_contents(resource_path('views/livewire/project/shared/environment-variable/show.blade.php'));
|
||||||
|
|
||||||
|
expect($view)->not->toContain('buttonFullWidth="true"');
|
||||||
|
});
|
||||||
|
|
||||||
it('uses sans font for the developer bulk environment variable editor', function () {
|
it('uses sans font for the developer bulk environment variable editor', function () {
|
||||||
$view = file_get_contents(resource_path('views/livewire/project/shared/environment-variable/all.blade.php'));
|
$view = file_get_contents(resource_path('views/livewire/project/shared/environment-variable/all.blade.php'));
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user