Skip to content

Commit

Permalink
fix ->isEnabled()
Browse files Browse the repository at this point in the history
  • Loading branch information
3x1io authored Sep 17, 2024
1 parent b212177 commit 9543003
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/FilamentAlertsPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,15 +226,6 @@ public function apiModel(?string $apiModel = \App\Models\User::class): static

public function boot(Panel $panel): void
{
if(class_exists(Module::class)){
if(\Nwidart\Modules\Facades\Module::find('FilamentAlerts')->isEnabled()){
$this->isActive = true;
}
}
else {
$this->isActive = true;
}

if($this->isActive) {
if (class_exists(FilamentSettingsHub::class) && $this->useSettingHub) {
FilamentSettingsHub::register([
Expand Down

0 comments on commit 9543003

Please sign in to comment.