This commit is contained in:
Andras Bacsai 2022-08-10 11:36:31 +00:00
parent b0ef5722fb
commit 2da24cc4bd
5 changed files with 8 additions and 7 deletions

View File

@ -19,7 +19,8 @@
"dbaeumer.vscode-eslint",
"svelte.svelte-vscode",
"ardenivanov.svelte-intellisense",
"Prisma.prisma"
"Prisma.prisma",
"bradlc.vscode-tailwindcss"
],
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [3000],

View File

@ -237,7 +237,7 @@
"logs": "Logs"
},
"destination": {
"delete_destination": "Delete Destination",
"delete_destination": "Delete",
"permission_denied_delete_destination": "You do not have permission to delete this destination",
"add_to_coolify": "Add to Coolify",
"coolify_proxy_stopped": "Coolify Proxy stopped!",

View File

@ -35,8 +35,8 @@
<div class="title font-bold">{$t('forms.configuration')}</div>
<button
type="submit"
class:bg-sky-600={!loading}
class:hover:bg-sky-500={!loading}
class="btn btn-sm bg-destinations"
class:loading={loading}
disabled={loading}
>{loading
? payload.isCoolifyProxyUsed

View File

@ -40,8 +40,8 @@
<div class="title font-bold">{$t('forms.configuration')}</div>
<button
type="submit"
class:bg-sky-600={!loading}
class:hover:bg-sky-500={!loading}
class="btn btn-sm bg-destinations"
class:loading={loading}
disabled={loading}
>{loading
? payload.isCoolifyProxyUsed

View File

@ -58,7 +58,7 @@
import DeleteIcon from '$lib/components/DeleteIcon.svelte';
const { id } = $page.params;
const isDestinationDeletable = destination.application.length === 0 && destination.database.length === 0 && destination.service.length === 0
const isDestinationDeletable = destination?.application.length === 0 && destination?.database.length === 0 && destination?.service.length === 0
async function deleteDestination(destination: any) {
if (!isDestinationDeletable) return