Skip to content

Commit f909f55

Browse files
committed
fix: add explicit success notification to createSection action (2.x)
1 parent 1918b60 commit f909f55

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

resources/lang/en/custom-fields.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
'default' => [
2525
'new_section' => 'New Section',
2626
],
27+
'notifications' => [
28+
'created' => 'Section created',
29+
],
2730
],
2831

2932
'field' => [

src/Filament/Management/Pages/CustomFieldsManagementPage.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ public function createSectionAction(): Action
113113
])
114114
->schema(SectionForm::entityType($this->currentEntityType)->schema())
115115
->action(fn (array $data): CustomFieldSection => $this->storeSection($data))
116+
->successNotificationTitle(__('custom-fields::custom-fields.section.notifications.created'))
116117
->modalWidth(Width::TwoExtraLarge);
117118
}
118119

0 commit comments

Comments
 (0)