mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-20 02:11:36 +00:00
small bug fix to update source-control provider
This commit is contained in:
parent
1bf3c94358
commit
7b8deddeca
@ -11,12 +11,14 @@ class UpdateSourceControlProvider extends Component
|
||||
{
|
||||
public Site $site;
|
||||
|
||||
public ?int $source_control = null;
|
||||
public $source_control = null;
|
||||
|
||||
public function update(): void
|
||||
{
|
||||
app(UpdateSourceControl::class)->update($this->site, $this->all());
|
||||
|
||||
$this->resetErrorBag();
|
||||
|
||||
session()->flash('status', 'source-control-updated');
|
||||
}
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
<div>
|
||||
<x-input-label for="provider" :value="__('Source Control')" />
|
||||
<x-select-input wire:model.defer="source_control" id="source_control" name="source_control" class="mt-1 w-full">
|
||||
<option value="" disabled selected>{{ __("Select") }}</option>
|
||||
<option value="" selected>{{ __("Select") }}</option>
|
||||
@foreach(\App\Models\SourceControl::all() as $sourceControl)
|
||||
<option value="{{ $sourceControl->id }}" @if($sourceControl->id === $source_control) selected @endif>{{ $sourceControl->profile }} ({{ $sourceControl->provider }})</option>
|
||||
@endforeach
|
||||
|
Loading…
x
Reference in New Issue
Block a user