Add settings button to projects page.

This commit is contained in:
MarioCake
2024-10-09 23:45:57 +02:00
parent d031911ada
commit f95f44f4cc
2 changed files with 11 additions and 1 deletions

View File

@@ -18,7 +18,11 @@ class Index extends Component
public function mount()
{
$this->private_keys = PrivateKey::ownedByCurrentTeam()->get();
$this->projects = Project::ownedByCurrentTeam()->get();
$this->projects = Project::ownedByCurrentTeam()->get()->map(function ($project) {
$project->route = route('project.edit', ['project_uuid' => $project->uuid]);
return $project;
});
$this->servers = Server::ownedByCurrentTeam()->count();
}

View File

@@ -24,6 +24,12 @@
<div x-text="item.description"></div>
</div>
</div>
<div class="flex items-center justify-center gap-2 pt-4 pb-2 mr-4 text-xs lg:py-0 lg:justify-normal" @click="false">
<a class="mx-4 font-bold hover:underline"
:href="item.route">
Settings
</a>
</div>
</div>
</template>
</div>