Quellcode durchsuchen

motivations - show_in_member_presences default false

ferrari vor 3 Wochen
Ursprung
Commit
3756dbbc9a
1 geänderte Dateien mit 4 neuen und 0 gelöschten Zeilen
  1. 4 0
      app/Http/Livewire/Motivation.php

+ 4 - 0
app/Http/Livewire/Motivation.php

@@ -30,6 +30,9 @@ class Motivation extends Component
         if(\Auth::user()->level != env('LEVEL_ADMIN', 0))
             return redirect()->to('/dashboard');
 
+        $this->enabled = true;
+        $this->show_in_member_presences = false;
+
     }
 
     public function sortBy($field)
@@ -48,6 +51,7 @@ class Motivation extends Component
         $this->name = '';
         $this->type = '';
         $this->enabled = true;
+        $this->show_in_member_presences = false;
         $this->emit('load-data-table');
     }