Minor style changes
This commit is contained in:
parent
93ade9cf0f
commit
643f3c81a9
|
@ -67,7 +67,7 @@ class AddStaffModal extends React.Component {
|
|||
return SessionStore.getDepartments().map(department => {
|
||||
if(department.private*1){
|
||||
return <spam>{department.name} <Icon name='user-secret'/> </spam>
|
||||
}else {
|
||||
} else {
|
||||
return department.name;
|
||||
}
|
||||
});
|
||||
|
|
|
@ -44,7 +44,6 @@ class AddStaffController extends Controller {
|
|||
private $level;
|
||||
private $departments;
|
||||
|
||||
|
||||
public function validations() {
|
||||
return [
|
||||
'permission' => 'staff_3',
|
||||
|
@ -74,7 +73,7 @@ class AddStaffController extends Controller {
|
|||
$this->storeRequestData();
|
||||
$staff = new Staff();
|
||||
|
||||
$staffRow = Staff::getDataStore($this->email,'email');
|
||||
$staffRow = Staff::getDataStore($this->email, 'email');
|
||||
|
||||
if($staffRow->isNull()) {
|
||||
$staff->setProperties([
|
||||
|
@ -84,7 +83,6 @@ class AddStaffController extends Controller {
|
|||
'profilePic' => $this->profilePic,
|
||||
'level' => $this->level,
|
||||
'sharedDepartmentList' => $this->getDepartmentList()
|
||||
|
||||
]);
|
||||
|
||||
$this->addOwner();
|
||||
|
@ -120,6 +118,7 @@ class AddStaffController extends Controller {
|
|||
|
||||
return $listDepartments;
|
||||
}
|
||||
|
||||
public function addOwner() {
|
||||
$departmentIds = json_decode($this->departments);
|
||||
|
||||
|
|
|
@ -57,9 +57,9 @@ class SendRecoverPasswordController extends Controller {
|
|||
$email = Controller::request('email');
|
||||
|
||||
if($this->staff){
|
||||
$this->user = Staff::getUser($email,'email');
|
||||
}else {
|
||||
$this->user = User::getUser($email,'email');
|
||||
$this->user = Staff::getUser($email, 'email');
|
||||
} else {
|
||||
$this->user = User::getUser($email, 'email');
|
||||
}
|
||||
|
||||
if(!$this->user->isNull()) {
|
||||
|
|
Loading…
Reference in New Issue