fix: PostObserver trigger published, submit cek kreator, toAll filter aktif, dead code
This commit is contained in:
@@ -52,7 +52,8 @@ class ActivitiesTable
|
||||
->icon('heroicon-o-paper-airplane')
|
||||
->color('info')
|
||||
->requiresConfirmation()
|
||||
->visible(fn ($record) => $record->status === 'draft')
|
||||
->visible(fn ($record) => $record->status === 'draft'
|
||||
&& $record->created_by === auth()->id())
|
||||
->action(fn ($record) => $record->update(['status' => 'pending'])),
|
||||
Action::make('approve')
|
||||
->label('Setujui')
|
||||
|
||||
Reference in New Issue
Block a user