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