Merge pull request #184 from coollabsio/next

v2.0.19
This commit is contained in:
Andras Bacsai 2022-02-23 10:29:10 +01:00 committed by GitHub
commit 277fd167cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 7 deletions

View File

@ -1,7 +1,7 @@
{ {
"name": "coolify", "name": "coolify",
"description": "An open-source & self-hostable Heroku / Netlify alternative.", "description": "An open-source & self-hostable Heroku / Netlify alternative.",
"version": "2.0.18", "version": "2.0.19",
"license": "AGPL-3.0", "license": "AGPL-3.0",
"scripts": { "scripts": {
"dev": "docker-compose -f docker-compose-dev.yaml up -d && NODE_ENV=development svelte-kit dev --host 0.0.0.0", "dev": "docker-compose -f docker-compose-dev.yaml up -d && NODE_ENV=development svelte-kit dev --host 0.0.0.0",

View File

@ -79,7 +79,7 @@ export async function login({ email, password }) {
create: { create: {
id: uid, id: uid,
name: uniqueName(), name: uniqueName(),
destinationDocker: { connect: { network: 'coolify' } } destinationDocker: { connect: { network: cuid() } }
} }
}, },
permission: { create: { teamId: uid, permission: 'owner' } } permission: { create: { teamId: uid, permission: 'owner' } }

View File

@ -61,8 +61,8 @@
class:hover:text-red-500={$session.isAdmin} class:hover:text-red-500={$session.isAdmin}
class="icons tooltip-bottom bg-transparent text-sm" class="icons tooltip-bottom bg-transparent text-sm"
data-tooltip={$session.isAdmin data-tooltip={$session.isAdmin
? 'Delete Git Source' ? 'Delete Destination'
: 'You do not have permission to delete a Git Source'}><DeleteIcon /></button : 'You do not have permission to delete this destination'}><DeleteIcon /></button
> >
</nav> </nav>
<slot /> <slot />

View File

@ -1,6 +1,6 @@
<script> <script>
import Docker from './_Docker.svelte'; import Docker from './_Docker.svelte';
import cuid from 'cuid';
let payload = {}; let payload = {};
let selected = 'docker'; let selected = 'docker';
@ -15,7 +15,7 @@
user: 'root', user: 'root',
port: 22, port: 22,
privateKey: null, privateKey: null,
network: 'coolify', network: cuid(),
isCoolifyProxyUsed: true isCoolifyProxyUsed: true
}; };
break; break;

View File

@ -75,7 +75,7 @@
async function handleSubmit() { async function handleSubmit() {
try { try {
loading.save = true; loading.save = true;
if (fqdn) { if (fqdn !== settings.fqdn) {
await post(`/settings/check.json`, { fqdn }); await post(`/settings/check.json`, { fqdn });
await post(`/settings.json`, { fqdn }); await post(`/settings.json`, { fqdn });
} }