fix(announcement): change width modal
This commit is contained in:
parent
d188cf382c
commit
f278a2d9c0
@ -139,7 +139,7 @@ public static function table(Table $table): Table
|
|||||||
])
|
])
|
||||||
->recordActions([
|
->recordActions([
|
||||||
EditAction::make()
|
EditAction::make()
|
||||||
->modalWidth(Width::TwoExtraLarge)
|
->modalWidth(Width::FiveExtraLarge)
|
||||||
->visible(fn (Announcement $record): bool => $record->type === AnnouncementType::PUBLIC),
|
->visible(fn (Announcement $record): bool => $record->type === AnnouncementType::PUBLIC),
|
||||||
|
|
||||||
DeleteAction::make(),
|
DeleteAction::make(),
|
||||||
|
|||||||
@ -30,7 +30,7 @@ protected function getHeaderActions(): array
|
|||||||
$action->makeModalSubmitAction('createAnother', arguments: ['another' => true])
|
$action->makeModalSubmitAction('createAnother', arguments: ['another' => true])
|
||||||
->label('Simpan dan Tambah Lagi'),
|
->label('Simpan dan Tambah Lagi'),
|
||||||
])
|
])
|
||||||
->modalWidth(Width::TwoExtraLarge)
|
->modalWidth(Width::FiveExtraLarge)
|
||||||
->after(function (array $data) {
|
->after(function (array $data) {
|
||||||
if ($data['type'] === AnnouncementType::PUBLIC) {
|
if ($data['type'] === AnnouncementType::PUBLIC) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user