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([
|
||||
EditAction::make()
|
||||
->modalWidth(Width::TwoExtraLarge)
|
||||
->modalWidth(Width::FiveExtraLarge)
|
||||
->visible(fn (Announcement $record): bool => $record->type === AnnouncementType::PUBLIC),
|
||||
|
||||
DeleteAction::make(),
|
||||
|
||||
@ -30,7 +30,7 @@ protected function getHeaderActions(): array
|
||||
$action->makeModalSubmitAction('createAnother', arguments: ['another' => true])
|
||||
->label('Simpan dan Tambah Lagi'),
|
||||
])
|
||||
->modalWidth(Width::TwoExtraLarge)
|
||||
->modalWidth(Width::FiveExtraLarge)
|
||||
->after(function (array $data) {
|
||||
if ($data['type'] === AnnouncementType::PUBLIC) {
|
||||
return;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user