For my sidebar navigation item I only want to show the badge when a certain condition is true. I specified that condition in the Settings page class. When I try to refresh the sidebar on form save, this doesn't do anything.
Any idea's on why this doesn't work properly?
public function getSaveFormAction(): Action { return parent::getSaveFormAction() ->dispatch('refresh-sidebar'); }
public function getSaveFormAction(): Action { return parent::getSaveFormAction() ->dispatch('refresh-sidebar'); }