Skip to content

Commit

Permalink
fix ->isEnabled()
Browse files Browse the repository at this point in the history
  • Loading branch information
3x1io committed Sep 17, 2024
1 parent 1893473 commit b9a7a45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"icon": "heroicon-c-globe-asia-australia",
"placeholder": "https://raw.githubusercontent.com/tomatophp/filament-locations/master/arts/3x1io-tomato-locations.jpg",
"type": "plugin",
"version": "v1.0.4",
"version": "v1.0.5",
"github" : "https://github.com/tomatophp/filament-locations",
"docs" : "https://github.com/tomatophp/filament-locations"
}
6 changes: 2 additions & 4 deletions src/FilamentLocationsPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,8 @@ public function getId(): string

public function register(Panel $panel): void
{
if(class_exists(Module::class)){
if(\Nwidart\Modules\Facades\Module::find('FilamentLocations')?->isEnabled()){
$this->isActive = true;
}
if(class_exists(Module::class) && \Nwidart\Modules\Facades\Module::find('FilamentLocations')?->isEnabled()){
$this->isActive = true;
}
else {
$this->isActive = true;
Expand Down

0 comments on commit b9a7a45

Please sign in to comment.