diff --git a/app/Livewire/AppInfoModal.php b/app/Livewire/AppInfoModal.php index 58f211d..4204600 100644 --- a/app/Livewire/AppInfoModal.php +++ b/app/Livewire/AppInfoModal.php @@ -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]); diff --git a/resources/views/livewire/app-info-modal.blade.php b/resources/views/livewire/app-info-modal.blade.php index fd0b4aa..3036a50 100644 --- a/resources/views/livewire/app-info-modal.blade.php +++ b/resources/views/livewire/app-info-modal.blade.php @@ -18,6 +18,7 @@ +
Save