Refactor application configuration blade file to
conditionally display tabs based on build pack
This commit is contained in:
parent
d9a966fd98
commit
1818404172
@ -5,10 +5,12 @@
|
|||||||
<div class="flex flex-col gap-4 min-w-fit">
|
<div class="flex flex-col gap-4 min-w-fit">
|
||||||
<a :class="activeTab === 'general' && 'text-white'"
|
<a :class="activeTab === 'general' && 'text-white'"
|
||||||
@click.prevent="activeTab = 'general'; window.location.hash = 'general'" href="#">General</a>
|
@click.prevent="activeTab = 'general'; window.location.hash = 'general'" href="#">General</a>
|
||||||
|
@if ($application->build_pack !== 'static')
|
||||||
<a :class="activeTab === 'environment-variables' && 'text-white'"
|
<a :class="activeTab === 'environment-variables' && 'text-white'"
|
||||||
@click.prevent="activeTab = 'environment-variables'; window.location.hash = 'environment-variables'"
|
@click.prevent="activeTab = 'environment-variables'; window.location.hash = 'environment-variables'"
|
||||||
href="#">Environment
|
href="#">Environment
|
||||||
Variables</a>
|
Variables</a>
|
||||||
|
@endif
|
||||||
@if ($application->git_based())
|
@if ($application->git_based())
|
||||||
<a :class="activeTab === 'source' && 'text-white'"
|
<a :class="activeTab === 'source' && 'text-white'"
|
||||||
@click.prevent="activeTab = 'source'; window.location.hash = 'source'" href="#">Source</a>
|
@click.prevent="activeTab = 'source'; window.location.hash = 'source'" href="#">Source</a>
|
||||||
@ -16,21 +18,25 @@
|
|||||||
<a :class="activeTab === 'server' && 'text-white'"
|
<a :class="activeTab === 'server' && 'text-white'"
|
||||||
@click.prevent="activeTab = 'server'; window.location.hash = 'server'" href="#">Server
|
@click.prevent="activeTab = 'server'; window.location.hash = 'server'" href="#">Server
|
||||||
</a>
|
</a>
|
||||||
|
@if ($application->build_pack !== 'static')
|
||||||
<a :class="activeTab === 'storages' && 'text-white'"
|
<a :class="activeTab === 'storages' && 'text-white'"
|
||||||
@click.prevent="activeTab = 'storages'; window.location.hash = 'storages'" href="#">Storages
|
@click.prevent="activeTab = 'storages'; window.location.hash = 'storages'" href="#">Storages
|
||||||
</a>
|
</a>
|
||||||
|
@endif
|
||||||
<a :class="activeTab === 'webhooks' && 'text-white'"
|
<a :class="activeTab === 'webhooks' && 'text-white'"
|
||||||
@click.prevent="activeTab = 'webhooks'; window.location.hash = 'webhooks'" href="#">Webhooks
|
@click.prevent="activeTab = 'webhooks'; window.location.hash = 'webhooks'" href="#">Webhooks
|
||||||
</a>
|
</a>
|
||||||
@if ($application->git_based())
|
@if ($application->git_based() && $application->build_pack !== 'static')
|
||||||
<a :class="activeTab === 'previews' && 'text-white'"
|
<a :class="activeTab === 'previews' && 'text-white'"
|
||||||
@click.prevent="activeTab = 'previews'; window.location.hash = 'previews'" href="#">Preview
|
@click.prevent="activeTab = 'previews'; window.location.hash = 'previews'" href="#">Preview
|
||||||
Deployments
|
Deployments
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
@if ($application->build_pack !== 'static')
|
||||||
<a :class="activeTab === 'health' && 'text-white'"
|
<a :class="activeTab === 'health' && 'text-white'"
|
||||||
@click.prevent="activeTab = 'health'; window.location.hash = 'health'" href="#">Health Checks
|
@click.prevent="activeTab = 'health'; window.location.hash = 'health'" href="#">Health Checks
|
||||||
</a>
|
</a>
|
||||||
|
@endif
|
||||||
<a :class="activeTab === 'rollback' && 'text-white'"
|
<a :class="activeTab === 'rollback' && 'text-white'"
|
||||||
@click.prevent="activeTab = 'rollback'; window.location.hash = 'rollback'" href="#">Rollback
|
@click.prevent="activeTab = 'rollback'; window.location.hash = 'rollback'" href="#">Rollback
|
||||||
</a>
|
</a>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user