Skip to content

Commit a072352

Browse files
authored
feat: Improvement pageClass
BREAKING CHANGE: removed CanBeEmbeddedInModals trait
2 parents b424cd1 + a7b32e5 commit a072352

File tree

4 files changed

+3
-27
lines changed

4 files changed

+3
-27
lines changed

README.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,8 @@ export default {
5454

5555
## Usage
5656

57-
First, for any relation manager that you want to be able to embed inside modals, add the `CanBeEmbeddedInModals` trait:
58-
```php
59-
use Guava\FilamentModalRelationManagers\Concerns\CanBeEmbeddedInModals;
60-
class LessonsRelationManager extends RelationManager
61-
{
62-
use CanBeEmbeddedInModals;
63-
64-
// ...
65-
}
66-
```
6757

68-
And that's it! Now you can use the `RelationManagerAction` anywhere you like to open the relation manager as a modal:
58+
You can use the `RelationManagerAction` anywhere you like to open the relation manager as a modal:
6959

7060
```php
7161
use Guava\FilamentModalRelationManagers\Actions\Table\RelationManagerAction;

resources/views/components/modal-relation-manager.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
"-ms-[5.25rem]" => $fixIconPaddingLeft && !$isModalSlideOver,
1212
"[&_.fi-ta-header-heading]:hidden" => $shouldHideRelationManagerHeading,
1313
])>
14-
@livewire($relationManager, ['ownerRecord' => $ownerRecord])
14+
@livewire($relationManager, ['ownerRecord' => $ownerRecord, 'pageClass' => ''])
1515
</div>

src/Concerns/CanBeEmbeddedInModals.php

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/Concerns/HasRelationManagerAction.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public function configure(): static
5858
'isModalSlideOver' => $this->isModalSlideOver(),
5959
]);
6060
})
61+
->modalSubmitAction(false)
6162
;
6263
}
6364

0 commit comments

Comments
 (0)