File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ protected function getActions(): array
2727 CreateAction::make (),
2828 Action::make ('page_tree ' )
2929 ->label (flexiblePagesTrans ('actions.page_tree_lbl ' ))
30+ ->icon ('heroicon-o-arrow-turn-down-right ' )
31+ ->color ('gray ' )
3032 ->visible (FilamentFlexibleContentBlockPages::config ()->isParentEnabled ($ this ->getModel ()))
3133 ->url (static ::getResource ()::getUrl ('tree ' )),
3234 ];
Original file line number Diff line number Diff line change 22
33namespace Statikbe \FilamentFlexibleContentBlockPages \Resources \PageResource \Pages ;
44
5- use SolutionForest \FilamentTree \Resources \Pages \TreePage as BasePage ;
5+ use SolutionForest \FilamentTree \Resources \Pages \TreePage ;
6+ use Statikbe \FilamentFlexibleContentBlockPages \Facades \FilamentFlexibleContentBlockPages ;
7+ use Statikbe \FilamentFlexibleContentBlockPages \FilamentFlexibleContentBlockPagesConfig ;
68use Statikbe \FilamentFlexibleContentBlockPages \Resources \PageResource ;
79
8- class ManagePageTree extends BasePage
10+ class ManagePageTree extends TreePage
911{
10- protected static string $ resource = PageResource::class;
11-
1212 // TODO make page depth configurable
1313 protected static int $ maxDepth = 2 ;
1414
15+ public static function getResource (): string
16+ {
17+ return FilamentFlexibleContentBlockPages::config ()->getResources ()[FilamentFlexibleContentBlockPagesConfig::TYPE_PAGE ];
18+ }
19+
1520 protected function getActions (): array
1621 {
1722 return [
You can’t perform that action at this time.
0 commit comments