fix: update navbar on build_pack change

This commit is contained in:
Andras Bacsai
2024-01-10 11:07:53 +01:00
parent 845fc191d4
commit f445a8c312
4 changed files with 13 additions and 9 deletions

View File

@@ -2,7 +2,7 @@
<h1>Configuration</h1>
<livewire:project.application.heading :application="$application" />
<div x-data="{ activeTab: window.location.hash ? window.location.hash.substring(1) : 'general' }" class="flex h-full pt-6">
<div class="flex flex-col gap-4 min-w-fit">
<div class="flex flex-col gap-4 xl:w-48">
<a :class="activeTab === 'general' && 'text-white'"
@click.prevent="activeTab = 'general'; window.location.hash = 'general'" href="#">General</a>
@if ($application->destination->server->isSwarm())