fix: Only show proxy for admin team

This commit is contained in:
Andras Bacsai
2022-04-06 22:28:03 +02:00
parent 430fc66ed7
commit f2061c5c25

View File

@@ -1,5 +1,6 @@
<script lang="ts"> <script lang="ts">
import { goto } from '$app/navigation'; import { goto } from '$app/navigation';
import { session } from '$app/stores';
export let payload; export let payload;
@@ -56,13 +57,15 @@
<label for="network" class="text-base font-bold text-stone-100">Network</label> <label for="network" class="text-base font-bold text-stone-100">Network</label>
<input required name="network" placeholder="default: coolify" bind:value={payload.network} /> <input required name="network" placeholder="default: coolify" bind:value={payload.network} />
</div> </div>
<div class="grid grid-cols-2 items-center"> {#if $session.teamId === '0'}
<Setting <div class="grid grid-cols-2 items-center">
bind:setting={payload.isCoolifyProxyUsed} <Setting
on:click={() => (payload.isCoolifyProxyUsed = !payload.isCoolifyProxyUsed)} bind:setting={payload.isCoolifyProxyUsed}
title="Use Coolify Proxy?" on:click={() => (payload.isCoolifyProxyUsed = !payload.isCoolifyProxyUsed)}
description="This will install a proxy on the destination to allow you to access your applications and services without any manual configuration (recommended for Docker).<br><br>Databases will have their own proxy." title="Use Coolify Proxy?"
/> description="This will install a proxy on the destination to allow you to access your applications and services without any manual configuration (recommended for Docker).<br><br>Databases will have their own proxy."
</div> />
</div>
{/if}
</form> </form>
</div> </div>