smaller fixes

This commit is contained in:
Andras Bacsai
2022-07-25 20:12:29 +00:00
parent adb60ad8d7
commit 26122bf985
5 changed files with 40 additions and 39 deletions

View File

@@ -66,11 +66,7 @@
});
const { organization, htmlUrl } = source;
const { fqdn } = settings;
const host = dev
? getAPIUrl()
: fqdn
? fqdn
: `http://${window.location.host}` || '';
const host = dev ? getAPIUrl() : fqdn ? fqdn : `http://${window.location.host}` || '';
const domain = getDomain(fqdn);
let url = 'settings/apps/new';
@@ -80,9 +76,7 @@
name: `coolify-${name}`,
url: host,
hook_attributes: {
url: dev
? getWebhookUrl('github')
: `${host}/webhooks/github/events`
url: dev ? getWebhookUrl('github') : `${host}/webhooks/github/events`
},
redirect_url: `${host}/webhooks/github`,
callback_urls: [`${host}/login/github/app`],
@@ -218,20 +212,24 @@
bind:value={source.apiUrl}
/>
</div>
<div class="grid grid-cols-2 items-center">
<label for="customPort" class="text-base font-bold text-stone-100">Custom SSH Port</label>
<input
name="customPort"
id="customPort"
disabled={!selfHosted}
readonly={!selfHosted}
required
value={source.customPort}
/>
<Explainer
text="If you use a self-hosted version of Git, you can provide custom port for all the Git related actions."
/>
</div>
{#if selfHosted}
<div class="grid grid-cols-2 items-center">
<label for="customPort" class="text-base font-bold text-stone-100"
>Custom SSH Port</label
>
<input
name="customPort"
id="customPort"
disabled={!selfHosted}
readonly={!selfHosted}
required
value={source.customPort}
/>
<Explainer
text="If you use a self-hosted version of Git, you can provide custom port for all the Git related actions."
/>
</div>
{/if}
<div class="grid grid-cols-2">
<div class="flex flex-col">
<label for="organization" class="pt-2 text-base font-bold text-stone-100"