fix: only visible with publicrepo

This commit is contained in:
Andras Bacsai 2022-11-29 13:13:04 +01:00
parent 876c81fad8
commit ffdc158d44

View File

@ -475,7 +475,7 @@
</script> </script>
<div class="w-full"> <div class="w-full">
<form on:submit|preventDefault={() => handleSubmit()}> <form id="saveForm" on:submit|preventDefault={() => handleSubmit()}>
<div class="mx-auto w-full"> <div class="mx-auto w-full">
<div class="flex flex-row border-b border-coolgray-500 mb-6 space-x-2"> <div class="flex flex-row border-b border-coolgray-500 mb-6 space-x-2">
<div class="title font-bold pb-3">General</div> <div class="title font-bold pb-3">General</div>
@ -515,6 +515,7 @@
> >
{/if} {/if}
</div> </div>
{#if application.settings.isPublicRepository}
<div class="grid grid-cols-2 items-center"> <div class="grid grid-cols-2 items-center">
<label for="repository">Git commit</label> <label for="repository">Git commit</label>
<div class="flex gap-2"> <div class="flex gap-2">
@ -524,7 +525,13 @@
placeholder="default: latest commit" placeholder="default: latest commit"
bind:value={application.gitCommitHash} bind:value={application.gitCommitHash}
/> />
<a href={application.gitSource.htmlUrl}/{application.repository}/commits/{application.branch} target="_blank" rel="noreferrer" class="btn btn-primary text-xs" >Commits<svg <a
href="{application.gitSource
.htmlUrl}/{application.repository}/commits/{application.branch}"
target="_blank"
rel="noreferrer"
class="btn btn-primary text-xs"
>Commits<svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
fill="currentColor" fill="currentColor"
viewBox="0 0 24 24" viewBox="0 0 24 24"
@ -537,9 +544,11 @@
stroke-linejoin="round" stroke-linejoin="round"
d="M4.5 19.5l15-15m0 0H8.25m11.25 0v11.25" d="M4.5 19.5l15-15m0 0H8.25m11.25 0v11.25"
/> />
</svg></a> </svg></a
>
</div> </div>
</div> </div>
{/if}
<div class="grid grid-cols-2 items-center"> <div class="grid grid-cols-2 items-center">
<label for="repository">{$t('application.git_repository')}</label> <label for="repository">{$t('application.git_repository')}</label>
{#if isDisabled || application.settings.isPublicRepository} {#if isDisabled || application.settings.isPublicRepository}
@ -1018,6 +1027,7 @@
placeholder="default: /Dockerfile" placeholder="default: /Dockerfile"
/> />
{#if application.baseDirectory} {#if application.baseDirectory}
<!-- svelte-ignore a11y-label-has-associated-control -->
<label class="label"> <label class="label">
<span class="label-text-alt text-xs" <span class="label-text-alt text-xs"
>Path: {application.baseDirectory.replace( >Path: {application.baseDirectory.replace(