Skip to content

Commit

Permalink
Merge pull request #2178 from headlamp-k8s/pod-counter-fix
Browse files Browse the repository at this point in the history
plugins/examples/pod-counter: Fix notifications issue
  • Loading branch information
joaquimrocha authored Jul 24, 2024
2 parents 2caefb8 + 3184242 commit 7ae51f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/examples/pod-counter/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ registerAppBarAction(PodCounter);

// We can also reorder the actions in the app bar.
registerAppBarAction(function reorderNotifications({ actions }: AppBarActionsProcessorArgs) {
if (!actions) {
return actions;
}
// Remove the notifications action button
const newActions = actions.filter(action => action.id !== DefaultAppBarAction.NOTIFICATION);

Expand Down

0 comments on commit 7ae51f6

Please sign in to comment.