diff --git a/app/Livewire/Notifications/DiscordSettings.php b/app/Livewire/Notifications/Discord.php similarity index 91% rename from app/Livewire/Notifications/DiscordSettings.php rename to app/Livewire/Notifications/Discord.php index f5f0d5591..8aad8ccf0 100644 --- a/app/Livewire/Notifications/DiscordSettings.php +++ b/app/Livewire/Notifications/Discord.php @@ -6,7 +6,7 @@ use App\Notifications\Test; use Livewire\Component; -class DiscordSettings extends Component +class Discord extends Component { public Team $team; protected $rules = [ @@ -55,4 +55,8 @@ public function sendTestNotification() $this->team?->notify(new Test()); $this->dispatch('success', 'Test notification sent.'); } + public function render() + { + return view('livewire.notifications.discord'); + } } diff --git a/app/Livewire/Notifications/EmailSettings.php b/app/Livewire/Notifications/Email.php similarity index 98% rename from app/Livewire/Notifications/EmailSettings.php rename to app/Livewire/Notifications/Email.php index a45381b84..343cbda3e 100644 --- a/app/Livewire/Notifications/EmailSettings.php +++ b/app/Livewire/Notifications/Email.php @@ -2,13 +2,12 @@ namespace App\Livewire\Notifications; +use Livewire\Component; use App\Models\InstanceSettings; use App\Models\Team; use App\Notifications\Test; -use Livewire\Component; -use Log; -class EmailSettings extends Component +class Email extends Component { public Team $team; public string $emails; @@ -191,4 +190,8 @@ public function copyFromInstanceSettings() } $this->dispatch('error', 'Instance SMTP/Resend settings are not enabled.'); } + public function render() + { + return view('livewire.notifications.email'); + } } diff --git a/app/Livewire/Notifications/TelegramSettings.php b/app/Livewire/Notifications/Telegram.php similarity index 93% rename from app/Livewire/Notifications/TelegramSettings.php rename to app/Livewire/Notifications/Telegram.php index 0f581a515..35b868527 100644 --- a/app/Livewire/Notifications/TelegramSettings.php +++ b/app/Livewire/Notifications/Telegram.php @@ -6,8 +6,9 @@ use App\Notifications\Test; use Livewire\Component; -class TelegramSettings extends Component +class Telegram extends Component { + public Team $team; protected $rules = [ 'team.telegram_enabled' => 'nullable|boolean', @@ -61,4 +62,8 @@ public function sendTestNotification() $this->team?->notify(new Test()); $this->dispatch('success', 'Test notification sent.'); } + public function render() + { + return view('livewire.notifications.telegram'); + } } diff --git a/app/Livewire/Team/Notification/Index.php b/app/Livewire/Team/Notification/Index.php deleted file mode 100644 index 86754d619..000000000 --- a/app/Livewire/Team/Notification/Index.php +++ /dev/null @@ -1,13 +0,0 @@ - {{-- --}} -