This commit is contained in:
Andras Bacsai 2023-06-13 11:04:11 +02:00
parent 87547d5622
commit eaf31eb946
3 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@ use Illuminate\Database\Eloquent\Casts\Attribute;
class GithubApp extends BaseModel
{
protected $fillable = ['name', 'uuid', 'organization', 'api_url', 'html_url', 'custom_user', 'custom_port', 'team_id'];
protected $fillable = ['name', 'uuid', 'organization', 'api_url', 'html_url', 'custom_user', 'custom_port', 'team_id', 'client_secret', 'webhook_secret'];
protected $appends = ['type'];
protected $casts = [
'is_public' => 'boolean',

View File

@ -1,10 +1,10 @@
<div class="flex flex-col gap-2" wire:init='load_deployments'
@if ($skip == 0) wire:poll.5000ms='reload_deployments' @endif>
<h2 class="pt-4">Deployments <span class="text-xs">({{ $deployments_count }})</span></h2>
@if (count($deployments) === 0)
{{-- @if (count($deployments) === 0)
<x-forms.button wire:click="load_deployments({{ $default_take }})">Load Deployments
</x-forms.button>
@endif
@endif --}}
@if ($show_next)
<x-forms.button wire:click="load_deployments({{ $default_take }})">Show More
</x-forms.button>

View File

@ -70,7 +70,7 @@
</div>
<div class="flex gap-2">
<x-forms.input id="github_app.client_id" label="Client Id" type="password" disabled />
<x-forms.input id="github_app.client_secret" label="Client Secret" type="password" disabled />
<x-forms.input id="github_app.client_secret" label="Client Secret" type="password" />
<x-forms.input id="github_app.webhook_secret" label="Webhook Secret" type="password" />
</div>
<x-forms.checkbox noDirty label="System Wide?"