Update ShowPlanes.php
This commit is contained in:
@@ -95,7 +95,7 @@ class ShowPlanes extends Component
|
||||
public $activoHoy;
|
||||
public $libres = null;
|
||||
|
||||
public $delete_1 = ['1'];
|
||||
public $delete_1 = [];
|
||||
public $tarifas;
|
||||
public $addUser;
|
||||
public $usuarios;
|
||||
@@ -717,7 +717,13 @@ class ShowPlanes extends Component
|
||||
}
|
||||
|
||||
public function seleccionarTodos(){
|
||||
$this->delete_1 = array_column($this->cont['data'], 'id');
|
||||
|
||||
if (count($this->delete_1)== 0) {
|
||||
$this->delete_1 = array_column($this->cont['data'], 'id');
|
||||
} else {
|
||||
$this->delete_1 = [];
|
||||
}
|
||||
|
||||
|
||||
//dd($this->delete_1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user