wip: test rename GitHub app

This commit is contained in:
peaklabs-dev
2024-12-03 12:41:56 +01:00
parent 669293afc1
commit c74728162e
2 changed files with 14 additions and 1 deletions

View File

@@ -142,6 +142,11 @@ class Change extends Component
}
}
public function getUpdatePath()
{
return "{$this->github_app->html_url}/settings/apps/{$this->github_app->app_id}";
}
public function submit()
{
try {

View File

@@ -58,7 +58,15 @@
@else
<div class="flex flex-col gap-2">
<div class="flex gap-2">
<div class="flex items-end gap-2 w-full">
<x-forms.input id="github_app.name" label="App Name" disabled />
<a href="{{ $this->getUpdatePath() }}">
<x-forms.button>
Update
<x-external-link />
</x-forms.button>
</a>
</div>
<x-forms.input id="github_app.organization" label="Organization" disabled
placeholder="If empty, personal user will be used" />
</div>