Skip to content

Commit

Permalink
Merge branch 'main' of github.com:code4romania/rvm
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio committed Jan 23, 2024
2 parents bb9405a + 276ddbf commit cb62ab3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@ public static function table(Table $table): Table
->headerActions([
ExportAction::make(),

Tables\Actions\CreateAction::make()
->disabled(fn (self $livewire) => $livewire->getOwnerRecord()->isInactive()),
Tables\Actions\CreateAction::make(),
])
->actions([
Tables\Actions\ViewAction::make(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,7 @@ public static function table(Table $table): Table
->modalHeading(__('resource.modal.heading'))
->modalSubheading(__('resource.modal.subheading'))
->modalWidth('4xl')
->slideOver()
->disabled(fn (self $livewire) => $livewire->getOwnerRecord()->isInactive()),
->slideOver(),
])
->actions([
Tables\Actions\ViewAction::make(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ public static function table(Table $table): Table
$data['role'] = UserRole::ORG_ADMIN;

return $data;
})
->disabled(fn (self $livewire) => $livewire->getOwnerRecord()->isInactive()),
}),
])
->actions([
Tables\Actions\ViewAction::make(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,7 @@ public static function table(Table $table): Table
->modalHeading(__('volunteer.modal.heading'))
->modalSubheading(__('volunteer.modal.subheading'))
->modalWidth('4xl')
->slideOver()
->disabled(fn (self $livewire) => $livewire->getOwnerRecord()->isInactive()),
->slideOver(),
])
->actions([
Tables\Actions\ViewAction::make(),
Expand Down

0 comments on commit cb62ab3

Please sign in to comment.