generated from thegrind/laravel-dockerized
WIP
This commit is contained in:
parent
81728c1623
commit
6481ec6520
@ -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]);
|
||||||
|
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user