mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
chore: styling
This commit is contained in:
committed by
GitHub Actions
parent
ae66721016
commit
98af8c10b4
@@ -183,6 +183,16 @@ class Table
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function prependRecordActions($actions)
|
||||
{
|
||||
$this->recordActions = array_merge(
|
||||
collect(value($actions))->map(fn ($action) => $action->table($this))->toArray(),
|
||||
$this->recordActions,
|
||||
);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function primaryColumnAction($action)
|
||||
{
|
||||
$this->primaryColumnAction = $action;
|
||||
@@ -201,15 +211,6 @@ class Table
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function recordActions($actions)
|
||||
{
|
||||
$this->recordActions = collect(value($actions))
|
||||
->map(fn ($action) => $action->table($this))
|
||||
->toArray();
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function pushRecordActions($actions)
|
||||
{
|
||||
$this->recordActions = array_merge(
|
||||
@@ -220,12 +221,11 @@ class Table
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function prependRecordActions($actions)
|
||||
public function recordActions($actions)
|
||||
{
|
||||
$this->recordActions = array_merge(
|
||||
collect(value($actions))->map(fn ($action) => $action->table($this))->toArray(),
|
||||
$this->recordActions,
|
||||
);
|
||||
$this->recordActions = collect(value($actions))
|
||||
->map(fn ($action) => $action->table($this))
|
||||
->toArray();
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@@ -84,11 +84,6 @@ class RelationManager extends Component
|
||||
return Filament::can('create', $this->getModel());
|
||||
}
|
||||
|
||||
public function canEdit()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function canDelete()
|
||||
{
|
||||
return true;
|
||||
@@ -106,6 +101,11 @@ class RelationManager extends Component
|
||||
return true;
|
||||
}
|
||||
|
||||
public function canEdit()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public static function getComponent($component)
|
||||
{
|
||||
return Livewire::getAlias(static::$components[$component]);
|
||||
|
||||
Reference in New Issue
Block a user