Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

smaller fixes

Andras Bacsai26122bf9858a
diff --git a/apps/ui/src/routes/databases/[id]/_Databases/_Databases.svelte b/apps/ui/src/routes/databases/[id]/_Databases/_Databases.svelte
index f75d868c0b..9824e8c12d 100644
--- a/apps/ui/src/routes/databases/[id]/_Databases/_Databases.svelte
+++ b/apps/ui/src/routes/databases/[id]/_Databases/_Databases.svelte
@@ -153,7 +153,8 @@
>
<input
value={database.version}
- disabled={$status.database.isRunning || $status.service.initialLoading}
+ readonly
+ disabled={$status.database.isRunning || $status.database.initialLoading}
class:cursor-pointer={!$status.database.isRunning}
/></a
>
diff --git a/apps/ui/src/routes/destinations/[id]/_RemoteDocker.svelte b/apps/ui/src/routes/destinations/[id]/_RemoteDocker.svelte
index 7b3ea683c4..62d90bc3f9 100644
--- a/apps/ui/src/routes/destinations/[id]/_RemoteDocker.svelte
+++ b/apps/ui/src/routes/destinations/[id]/_RemoteDocker.svelte
@@ -239,7 +239,6 @@
><input
value={destination.sshKey.name}
id="sshKey"
- disabled
class="cursor-pointer hover:bg-coolgray-500"
/></a
>
diff --git a/apps/ui/src/routes/services/[id]/_Services/_Services.svelte b/apps/ui/src/routes/services/[id]/_Services/_Services.svelte
index e774ccfc63..3d8f0302e2 100644
--- a/apps/ui/src/routes/services/[id]/_Services/_Services.svelte
+++ b/apps/ui/src/routes/services/[id]/_Services/_Services.svelte
@@ -198,6 +198,7 @@
<input
value={service.version}
id="service"
+ readonly
disabled={$status.service.isRunning || $status.service.initialLoading}
class:cursor-pointer={!$status.service.isRunning}
/></a
diff --git a/apps/ui/src/routes/sources/[id]/_Github.svelte b/apps/ui/src/routes/sources/[id]/_Github.svelte
index 47ec86658d..ab5028c7e4 100644
--- a/apps/ui/src/routes/sources/[id]/_Github.svelte
+++ b/apps/ui/src/routes/sources/[id]/_Github.svelte
@@ -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"
diff --git a/apps/ui/src/routes/sources/[id]/_Gitlab.svelte b/apps/ui/src/routes/sources/[id]/_Gitlab.svelte
index 34d4ef436a..70d02e2a25 100644
--- a/apps/ui/src/routes/sources/[id]/_Gitlab.svelte
+++ b/apps/ui/src/routes/sources/[id]/_Gitlab.svelte
@@ -31,7 +31,7 @@
appSecret: null
};
}
- $: selfHosted = source.htmlUrl !== 'https://gitlab.com' ;
+ $: selfHosted = source.htmlUrl !== 'https://gitlab.com';
onMount(() => {
oauthIdEl && oauthIdEl.focus();
@@ -228,20 +228,22 @@
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
- bind: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
+ bind: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 items-start">
<div class="flex-col">
<label for="oauthId" class="pt-2 text-base font-bold text-stone-100"