Skip to content

Commit

Permalink
Rename route attribute to settingsRoute attribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioCakeDev committed Oct 10, 2024
1 parent 62e67ef commit 76d631d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Livewire/Project/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function mount()
{
$this->private_keys = PrivateKey::ownedByCurrentTeam()->get();
$this->projects = Project::ownedByCurrentTeam()->get()->map(function ($project) {
$project->route = route('project.edit', ['project_uuid' => $project->uuid]);
$project->settingsRoute = route('project.edit', ['project_uuid' => $project->uuid]);

return $project;
});
Expand Down
2 changes: 1 addition & 1 deletion resources/views/livewire/project/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</div>
<div class="flex items-center justify-center gap-2 pt-4 pb-2 mr-4 text-xs lg:py-0 lg:justify-normal">
<a class="mx-4 font-bold hover:underline"
:href="item.route">
:href="item.settingsRoute">
Settings
</a>
</div>
Expand Down

0 comments on commit 76d631d

Please sign in to comment.