diff --git a/app/Http/Livewire/PrivateKey/Create.php b/app/Http/Livewire/PrivateKey/Create.php index e21f02309..ee73827ea 100644 --- a/app/Http/Livewire/PrivateKey/Create.php +++ b/app/Http/Livewire/PrivateKey/Create.php @@ -16,12 +16,13 @@ class Create extends Component if (!str_ends_with($this->private_key_value, "\n")) { $this->private_key_value .= "\n"; } - PrivateKey::create([ + $new_private_key = PrivateKey::create([ 'name' => $this->private_key_name, 'description' => $this->private_key_description, 'private_key' => $this->private_key_value, 'team_id' => session('currentTeam')->id ]); session('currentTeam')->privateKeys = PrivateKey::where('team_id', session('currentTeam')->id)->get(); + redirect()->route('private-key.show', $new_private_key->uuid); } } diff --git a/app/View/Components/FormInput.php b/app/View/Components/FormInput.php deleted file mode 100644 index 6030c2681..000000000 --- a/app/View/Components/FormInput.php +++ /dev/null @@ -1,34 +0,0 @@ - - + Login @if ($errors->any())
diff --git a/resources/views/auth/register.blade.php b/resources/views/auth/register.blade.php index a2494ff3a..515f47509 100644 --- a/resources/views/auth/register.blade.php +++ b/resources/views/auth/register.blade.php @@ -9,7 +9,7 @@ - + Register @if ($errors->any())
diff --git a/resources/views/components/confirm-modal.blade.php b/resources/views/components/confirm-modal.blade.php index d25996123..24fad1ff0 100644 --- a/resources/views/components/confirm-modal.blade.php +++ b/resources/views/components/confirm-modal.blade.php @@ -16,8 +16,8 @@
- - + Confirm + Cancel
diff --git a/resources/views/components/input.blade.php b/resources/views/components/input.blade.php deleted file mode 100644 index 0acf572ce..000000000 --- a/resources/views/components/input.blade.php +++ /dev/null @@ -1,11 +0,0 @@ - diff --git a/resources/views/components/inputs/button.blade.php b/resources/views/components/inputs/button.blade.php new file mode 100644 index 000000000..9d9faaa65 --- /dev/null +++ b/resources/views/components/inputs/button.blade.php @@ -0,0 +1,13 @@ +@props([ + 'defaultClass' => 'bg-indigo-500', + 'confirm' => null, + 'confirmAction' => null, +]) + + diff --git a/resources/views/components/form-input.blade.php b/resources/views/components/inputs/input.blade.php similarity index 85% rename from resources/views/components/form-input.blade.php rename to resources/views/components/inputs/input.blade.php index c09365694..f899cb64e 100644 --- a/resources/views/components/form-input.blade.php +++ b/resources/views/components/inputs/input.blade.php @@ -1,3 +1,15 @@ +@props([ + 'id' => null, + 'required' => false, + 'readonly' => false, + 'label' => null, + 'type' => 'text', + 'class' => '', + 'instantSave' => false, + 'disabled' => false, + 'hidden' => false, +]) + @if ($type === 'checkbox')