فهرست منبع

fix - al salvataggio ritorna alla lista con reload della pagina per ricaricare la tabella

ferrari 3 ماه پیش
والد
کامیت
06d6247238
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      app/Http/Livewire/Member.php

+ 2 - 0
app/Http/Livewire/Member.php

@@ -993,6 +993,7 @@ class Member extends Component
             $this->resetFields();
             $this->resetFields();
             if ($close) {
             if ($close) {
                 $this->add = false;
                 $this->add = false;
+                return redirect()->to('/members');
             } else {
             } else {
                 $this->edit($member->id);
                 $this->edit($member->id);
                 $this->emit('saved-and-continue', $this->type);
                 $this->emit('saved-and-continue', $this->type);
@@ -1358,6 +1359,7 @@ class Member extends Component
             if ($close) {
             if ($close) {
                 $this->resetFields();
                 $this->resetFields();
                 $this->update = false;
                 $this->update = false;
+                return redirect()->to('/members');
             } else {
             } else {
                 $this->emit('saved-and-continue', $this->type);
                 $this->emit('saved-and-continue', $this->type);
                 $this->dispatchBrowserEvent('scroll-to-top');
                 $this->dispatchBrowserEvent('scroll-to-top');