fix: add github app change on new app view
This commit is contained in:
@@ -15,34 +15,21 @@
|
|||||||
</ul>
|
</ul>
|
||||||
<div class="flex flex-col justify-center gap-2 text-left xl:flex-row">
|
<div class="flex flex-col justify-center gap-2 text-left xl:flex-row">
|
||||||
@foreach ($github_apps as $ghapp)
|
@foreach ($github_apps as $ghapp)
|
||||||
@if ($selected_github_app_id == $ghapp->id)
|
|
||||||
<div class="gap-2 py-4 cursor-pointer group hover:bg-coollabs bg-coolgray-200"
|
<div class="gap-2 py-4 cursor-pointer group hover:bg-coollabs bg-coolgray-200"
|
||||||
wire:click.prevent="loadRepositories({{ $ghapp->id }})"
|
wire:click.prevent="loadRepositories({{ $ghapp->id }})" wire:key="{{ $ghapp->id }}">
|
||||||
wire:key="{{ $ghapp->id }}">
|
<div class="flex mr-4">
|
||||||
<div class="flex gap-4 mx-6">
|
|
||||||
<div class="group-hover:text-white">
|
|
||||||
{{ $ghapp->name }}
|
|
||||||
</div>
|
|
||||||
<div>{{ $ghapp->http_url }}</div>
|
|
||||||
<span wire:target="loadRepositories({{ $ghapp->id }})" wire:loading.delay
|
|
||||||
class="loading loading-xs text-warning loading-spinner"></span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@else
|
|
||||||
<div class="gap-2 py-4 cursor-pointer group hover:bg-coollabs bg-coolgray-200"
|
|
||||||
wire:click.prevent="loadRepositories({{ $ghapp->id }})"
|
|
||||||
wire:key="{{ $ghapp->id }}">
|
|
||||||
<div class="flex flex-col mx-6">
|
<div class="flex flex-col mx-6">
|
||||||
<div class="group-hover:text-white">
|
<div class="group-hover:text-white">
|
||||||
{{ data_get($ghapp, 'name') }}
|
{{ data_get($ghapp, 'name') }}
|
||||||
</div>
|
</div>
|
||||||
<div class="text-xs text-gray-400 group-hover:text-white">
|
<div class="text-xs text-gray-400 group-hover:text-white">
|
||||||
{{ data_get($ghapp, 'html_url') }}</div>
|
{{ data_get($ghapp, 'html_url') }}</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
<span wire:target="loadRepositories({{ $ghapp->id }})" wire:loading.delay
|
<span wire:target="loadRepositories({{ $ghapp->id }})" wire:loading.delay
|
||||||
class="">Loading...</span>
|
class="loading loading-xs text-warning loading-spinner"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
|
||||||
@endforeach
|
@endforeach
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
@@ -66,9 +53,14 @@
|
|||||||
@endif
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
</x-forms.select>
|
</x-forms.select>
|
||||||
<x-forms.button wire:click.prevent="loadBranches"> Check
|
<x-forms.button wire:click.prevent="loadBranches"> Load Repository Details </x-forms.button>
|
||||||
repository
|
<a target="_blank" class="flex hover:no-underline"
|
||||||
|
href="{{ get_installation_path($github_app) }}">
|
||||||
|
<x-forms.button>
|
||||||
|
Change Repositories on GitHub
|
||||||
|
<x-external-link />
|
||||||
</x-forms.button>
|
</x-forms.button>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@else
|
@else
|
||||||
<div>No repositories found. Check your GitHub App configuration.</div>
|
<div>No repositories found. Check your GitHub App configuration.</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user