Skip to content

Commit 64a282f

Browse files
committed
refactor: move eclipse settings to cluster
1 parent 6f18c36 commit 64a282f

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

src/Filament/Pages/ManageEclipse.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
namespace Eclipse\Core\Filament\Pages;
44

55
use BezhanSalleh\FilamentShield\Traits\HasPageShield;
6+
use Eclipse\Common\CommonPlugin;
67
use Eclipse\Core\Settings\EclipseSettings;
78
use Filament\Forms;
89
use Filament\Forms\Form;
910
use Filament\Pages\SettingsPage;
11+
use Illuminate\Contracts\Support\Htmlable;
1012

1113
class ManageEclipse extends SettingsPage
1214
{
@@ -27,13 +29,19 @@ public function form(Form $form): Form
2729
]);
2830
}
2931

30-
public static function getNavigationGroup(): ?string
32+
public static function getCluster(): ?string
3133
{
32-
return 'Configuration';
34+
return app(CommonPlugin::class)->getSettingsCluster();
3335
}
3436

3537
public static function getNavigationLabel(): string
3638
{
3739
return 'System';
3840
}
41+
42+
public function getTitle(): string|Htmlable
43+
{
44+
return $this->getNavigationLabel();
45+
}
46+
3947
}

src/Providers/AdminPanelProvider.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use BezhanSalleh\FilamentShield\FilamentShieldPlugin;
77
use BezhanSalleh\FilamentShield\Middleware\SyncShieldTenant;
88
use DutchCodingCompany\FilamentDeveloperLogins\FilamentDeveloperLoginsPlugin;
9+
use Eclipse\Common\CommonPlugin;
910
use Eclipse\Common\Providers\GlobalSearchProvider;
1011
use Eclipse\Core\Filament\Pages\Dashboard;
1112
use Eclipse\Core\Filament\Pages\EditProfile;
@@ -122,6 +123,7 @@ public function panel(Panel $panel): Panel
122123
Authenticate::class,
123124
])
124125
->plugins([
126+
CommonPlugin::make(),
125127
FilamentShieldPlugin::make(),
126128
EnvironmentIndicatorPlugin::make(),
127129
FilamentDeveloperLoginsPlugin::make()

0 commit comments

Comments
 (0)