Skip to content

Commit

Permalink
When the Recent Updates link is activated for partner branding, intro…
Browse files Browse the repository at this point in the history
…duce a new updates menu item in the avatar drop down (#1074)
  • Loading branch information
ketan-canyon authored Oct 23, 2024
1 parent ba99b97 commit 7d88dcb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/Providers/Filament/AdminPanelProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,16 @@ public function panel(Panel $panel): Panel
->label('Profile Settings')
->url(fn () => EditProfile::getUrl())
->icon('heroicon-s-cog-6-tooth'),
MenuItem::make()
->label('Recent Updates')
->url(function (ThemeSettings $themeSettings) {
return $themeSettings->recent_updates_url;
})
->icon('heroicon-s-megaphone')
->openUrlInNewTab()
->visible(function (ThemeSettings $themeSettings) {
return $themeSettings->is_recent_updates_url_enabled && ! empty($themeSettings->recent_updates_url);
}),
MenuItem::make()
->label('Get Support')
->url(function (ThemeSettings $themeSettings) {
Expand Down

0 comments on commit 7d88dcb

Please sign in to comment.