This commit is contained in:
Andras Bacsai 2023-04-19 14:47:11 +02:00
parent ab588d37c0
commit ffa8f40864

View File

@ -1,13 +1,13 @@
<x-applications.layout :applicationId="$application->id" title="Configurations"> <x-applications.layout :applicationId="$application->id" title="Configurations">
<div x-data="{ tab: window.location.hash ? window.location.hash.substring(1) : 'general' }"> <div x-data="{ tab: window.location.hash ? window.location.hash.substring(1) : 'general' }">
<div class="flex gap-4"> <div class="flex gap-4">
<button @click.prevent="tab = 'general'; window.location.hash = 'general'" href="#">General</button> <a @click.prevent="tab = 'general'; window.location.hash = 'general'" href="#">General</a>
<button @click.prevent="tab = 'secrets'; window.location.hash = 'secrets'" href="#">Secrets</button> <a @click.prevent="tab = 'secrets'; window.location.hash = 'secrets'" href="#">Secrets</a>
<button @click.prevent="tab = 'source'; window.location.hash = 'source'" href="#">Source</button> <a @click.prevent="tab = 'source'; window.location.hash = 'source'" href="#">Source</a>
<button @click.prevent="tab = 'destination'; window.location.hash = 'destination'" href="#">Destination <a @click.prevent="tab = 'destination'; window.location.hash = 'destination'" href="#">Destination
</button> </a>
<button @click.prevent="tab = 'storages'; window.location.hash = 'storages'" href="#">Storage <a @click.prevent="tab = 'storages'; window.location.hash = 'storages'" href="#">Storage
</button> </a>
</div> </div>
<div x-cloak x-show="tab === 'general'"> <div x-cloak x-show="tab === 'general'">
<livewire:application.general :applicationId="$application->id" /> <livewire:application.general :applicationId="$application->id" />