chore: styling

This commit is contained in:
danharrin
2021-04-14 15:12:08 +00:00
committed by GitHub Actions
parent ae66721016
commit 98af8c10b4
2 changed files with 19 additions and 19 deletions
+14 -14
View File
@@ -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;
}
+5 -5
View File
@@ -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]);