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

View File

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