WIP
All checks were successful
linter / quality (push) Successful in 6m12s
tests / ci (push) Successful in 14m56s

This commit is contained in:
Javier Feliz 2025-08-02 17:03:44 -04:00
parent 81728c1623
commit 6481ec6520
2 changed files with 4 additions and 0 deletions

View File

@ -14,6 +14,7 @@ class AppInfoModal extends Component
public ?string $name = '';
public string $query = '';
public ?string $icon = null;
public ?string $redirect_uri = '';
public function updated($prop)
{
@ -33,6 +34,7 @@ class AppInfoModal extends Component
$this->app = Application::find($id);
$this->name = $this->app->name;
$this->icon = $this->app->getIconUrl();
$this->redirect_uri = $this->app->redirect_uri;
}
public function save()
@ -40,6 +42,7 @@ class AppInfoModal extends Component
$this->app->update([
'name' => $this->name,
'icon' => $this->icon,
'redirect_uri' => $this->redirect_uri,
]);
$this->dispatch('app-updated', ['id' => $this->app->id]);

View File

@ -18,6 +18,7 @@
<flux:input wire:model.live="query" label="Icon" />
</div>
<flux:input wire:model="name" />
<flux:input wire:model="redirect_uri" label="Redirect URI" />
<div class="flex gap-4">
<flux:button class="flex-1" variant="primary" type="submit" x-on:click="edit = false">Save
</flux:button>