fix: Random network name for demo

This commit is contained in:
Andras Bacsai
2022-02-23 10:22:25 +01:00
parent 08f57ac5bc
commit 11ee1651ae
4 changed files with 6 additions and 6 deletions

View File

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

View File

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

View File

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