File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
resources/views/livewire/project/new Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,16 @@ public function updatedBaseDirectory()
99
99
}
100
100
}
101
101
102
+ public function updatedDockerComposeLocation ()
103
+ {
104
+ if ($ this ->docker_compose_location ) {
105
+ $ this ->docker_compose_location = rtrim ($ this ->docker_compose_location , '/ ' );
106
+ if (! str ($ this ->docker_compose_location )->startsWith ('/ ' )) {
107
+ $ this ->docker_compose_location = '/ ' .$ this ->docker_compose_location ;
108
+ }
109
+ }
110
+ }
111
+
102
112
public function updatedBuildPack ()
103
113
{
104
114
if ($ this ->build_pack === 'nixpacks ' ) {
Original file line number Diff line number Diff line change 4
4
<form class =" flex flex-col gap-2" wire:submit =' loadBranch' >
5
5
<div class =" flex flex-col gap-2" >
6
6
<div class =" flex flex-col gap-2" >
7
- <div class =" flex items-end gap-2" >
7
+ <div class =" flex gap-2 items-end " >
8
8
<x-forms .input required id =" repository_url" label =" Repository URL (https://)"
9
9
helper =" {!! __ (' repository.url' ) ! !}" />
10
10
<x-forms .button type =" submit" >
47
47
@if ($build_pack === ' dockercompose' )
48
48
<x-forms .input placeholder =" /" wire:model.blur =" base_directory" label =" Base Directory"
49
49
helper =" Directory to use as root. Useful for monorepos." />
50
- <x-forms .input placeholder =" /docker-compose.yaml" id =" docker_compose_location"
50
+ <x-forms .input placeholder =" /docker-compose.yaml" wire:model.blur =" docker_compose_location"
51
51
label =" Docker Compose Location"
52
52
helper =" It is calculated together with the Base Directory:<br><span class='dark:text-warning'>{{ Str:: start ($base_directory . $docker_compose_location , ' /' ) } } </span>" />
53
53
Compose file location in your repository:<span
You can’t perform that action at this time.
0 commit comments