mirror of
https://github.com/sp-tarkov/forge.git
synced 2025-02-13 04:30:41 -05:00
29 lines
570 B
PHP
29 lines
570 B
PHP
<?php
|
|
|
|
namespace App\Livewire\Mod;
|
|
|
|
use App\Models\ModeratedModel;
|
|
use Livewire\Component;
|
|
|
|
class ModerationOptions extends Component
|
|
{
|
|
public ModeratedModel $moderatedObject;
|
|
|
|
public function render()
|
|
{
|
|
return view('livewire.mod.moderation-options');
|
|
}
|
|
|
|
public function delete(): void
|
|
{
|
|
$this->moderatedObject->delete();
|
|
$this->js('window.location.reload()');
|
|
}
|
|
|
|
public function toggleDisabled(): void
|
|
{
|
|
$this->moderatedObject->toggleDisabled();
|
|
$this->js('window.location.reload()');
|
|
}
|
|
}
|