forge/app/Livewire/Mod/ModerationOptions.php

40 lines
803 B
PHP
Raw Normal View History

2024-10-08 13:15:12 -04:00
<?php
namespace App\Livewire\Mod;
2025-02-06 10:00:24 -05:00
use Illuminate\Contracts\View\Factory;
use Illuminate\Contracts\View\View as ContractView;
use Illuminate\Foundation\Application;
use Illuminate\View\View;
2024-10-08 13:15:12 -04:00
use Livewire\Component;
class ModerationOptions extends Component
{
public string $objectId;
public string $targetType;
public bool $disabled;
public string $displayName;
2024-11-23 11:27:10 -05:00
2024-12-02 16:20:16 -05:00
public bool $showDeleteDialog = false;
public bool $showDisableDialog = false;
2025-02-06 10:00:24 -05:00
public function render(): Application|Factory|ContractView|View
2024-10-08 13:15:12 -04:00
{
return view('livewire.mod.moderation-options');
2024-10-08 13:15:12 -04:00
}
2024-11-22 14:28:13 -05:00
2024-12-02 16:20:16 -05:00
public function confirmDelete(): void
2024-11-22 14:28:13 -05:00
{
2024-12-02 16:20:16 -05:00
$this->showDeleteDialog = true;
2024-11-22 14:28:13 -05:00
}
2024-12-02 16:20:16 -05:00
public function confirmDisable(): void
2024-11-22 14:28:13 -05:00
{
2024-12-02 16:20:16 -05:00
$this->showDisableDialog = true;
2024-11-22 14:28:13 -05:00
}
2024-10-08 13:15:12 -04:00
}