Skip to content

Commit

Permalink
skip adding fluent actions menu if it already exists (backport of #fb…
Browse files Browse the repository at this point in the history
…2c518 to v7)
  • Loading branch information
xini committed Dec 16, 2024
1 parent 64b0c33 commit 2144025
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Extension/Traits/FluentAdminTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ protected function updateFluentActions(
return;
}

// check if actions menu already exist
if ($actions->fieldByName('FluentMenu')) {
return;
}

// Build root tabset that makes up the menu
$rootTabSet = TabSet::create('FluentMenu')->setTemplate(
'FluentAdminTabSet'
Expand Down

0 comments on commit 2144025

Please sign in to comment.