30 lines
781 B
PHP
30 lines
781 B
PHP
<?php
|
|
|
|
namespace App\Livewire;
|
|
|
|
use LivewireUI\Modal\ModalComponent;
|
|
|
|
/**
|
|
* Confirmation before a customer restarts their own cloud (R23).
|
|
*
|
|
* A restart costs them their Nextcloud for a couple of minutes and disconnects
|
|
* whoever is working in it, so it is not something a stray click should do —
|
|
* and the confirmation is drawn by this product, never by the browser.
|
|
*
|
|
* No mutation here. Cloud::restart() keeps the work and the authorisation check
|
|
* it already had; this only says yes.
|
|
*/
|
|
class ConfirmRestartCloud extends ModalComponent
|
|
{
|
|
public function proceed(): void
|
|
{
|
|
$this->dispatch('cloud-restart-confirmed');
|
|
$this->closeModal();
|
|
}
|
|
|
|
public function render()
|
|
{
|
|
return view('livewire.confirm-restart-cloud');
|
|
}
|
|
}
|