boton
This commit is contained in:
@@ -117,12 +117,7 @@ class ShowPlanes extends Component
|
||||
public $cont;
|
||||
|
||||
|
||||
public function getListeners()
|
||||
{
|
||||
return [
|
||||
'siRenovar', 'noRenovar'
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
public function render()
|
||||
{
|
||||
@@ -216,29 +211,32 @@ class ShowPlanes extends Component
|
||||
$this->usuario_renovar = $renovarCuenta->correo;
|
||||
$this->password_renovar = $renovarCuenta->password;
|
||||
$this->fecha_inicial_renovar_old = $renovarCuenta->inicio;
|
||||
$this->fecha_final_renovar_old = $renovarCuenta->vencimiento;
|
||||
$this->fecha_inicial_renovar = $renovarCuenta->inicio;
|
||||
$this->fecha_final_renovar_old = $renovarCuenta->vencimiento;
|
||||
$this->fecha_final_renovar = $renovarCuenta->vencimiento;
|
||||
$this->estado = $renovarCuenta->estado;
|
||||
}
|
||||
|
||||
public function getListeners()
|
||||
{
|
||||
return [
|
||||
'siRenovar', 'noRenovar',
|
||||
];
|
||||
}
|
||||
public function saveRenovar()
|
||||
{
|
||||
if ($this->fecha_inicial_renovar_old !== $this->fecha_inicial_renovar || $this->fecha_final_renovar_old !== $this->fecha_final_renovar) {
|
||||
$this->alert('warning', '¿Desea también desvincular todos los usuarios de esta cuenta?', [
|
||||
$this->alert('warning', '¿Desea también desvincular tods los usuarios de esta cuenta? ', [
|
||||
'position' => 'center',
|
||||
'timer' => '60000',
|
||||
'toast' => false,
|
||||
'text' => 'Esta seguro',
|
||||
'allowOutsideClick' => false,
|
||||
'allowEscapeKey' => false,
|
||||
'timerProgressBar' => true,
|
||||
'showConfirmButton' => true,
|
||||
'showDenyButton' => false,
|
||||
'showCancelButton' => true,
|
||||
'onConfirmed' => 'siRenovar',
|
||||
'showDenyButton' => true,
|
||||
'onDenied' => 'noRenovar',
|
||||
'onDismissed' => 'noRenovar',
|
||||
'cancelButtonText' => 'No, solo renovar',
|
||||
'denyButtonText' => 'No, solo renovar',
|
||||
'showConfirmButton' => true,
|
||||
'onConfirmed' => 'siRenovar',
|
||||
'confirmButtonText' => 'Si, liberar cuenta',
|
||||
]);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user