소스 검색

motivations - show_in_member_presences default false

ferrari 3 주 전
부모
커밋
3756dbbc9a
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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))
         if(\Auth::user()->level != env('LEVEL_ADMIN', 0))
             return redirect()->to('/dashboard');
             return redirect()->to('/dashboard');
 
 
+        $this->enabled = true;
+        $this->show_in_member_presences = false;
+
     }
     }
 
 
     public function sortBy($field)
     public function sortBy($field)
@@ -48,6 +51,7 @@ class Motivation extends Component
         $this->name = '';
         $this->name = '';
         $this->type = '';
         $this->type = '';
         $this->enabled = true;
         $this->enabled = true;
+        $this->show_in_member_presences = false;
         $this->emit('load-data-table');
         $this->emit('load-data-table');
     }
     }