Pārlūkot izejas kodu

presence - fix cancellazione presenza

ferrari 4 nedēļas atpakaļ
vecāks
revīzija
8716ecdbb0

+ 1 - 1
app/Http/Livewire/Presence.php

@@ -603,7 +603,7 @@ class Presence extends Component
             $presence->status = 99;
             $presence->save();
         }
-        return redirect()->to('/presences?calendarId=' . $this->calendar->id);
+        // return redirect()->to('/presences?calendarId=' . $this->calendar->id);
     }
 
     public function addMember($ids)

+ 1 - 0
resources/views/livewire/presence.blade.php

@@ -706,6 +706,7 @@
             });
             var motivation_id = $("#motivation_id").val();
             @this.cancel(ids, motivation_id);
+            hideShowDelete();
         }
 
         function createMember()