diff --git a/src/lib/pages/domains/wizard/step1.svelte b/src/lib/pages/domains/wizard/step1.svelte
index 480a585807..2c8a0e8847 100644
--- a/src/lib/pages/domains/wizard/step1.svelte
+++ b/src/lib/pages/domains/wizard/step1.svelte
@@ -6,21 +6,12 @@
import { sdk } from '$lib/stores/sdk';
import { isSelfHosted } from '$lib/system';
import { func } from '$routes/console/project-[project]/functions/function-[function]/store';
- import { onMount } from 'svelte';
import { ProxyTypes } from '../index.svelte';
import { domain, typeStore } from './store';
import { consoleVariables } from '$routes/console/store';
let error = null;
- let isDomainsEnabled = false;
-
- onMount(async () => {
- if (!isSelfHosted) {
- return;
- }
-
- isDomainsEnabled = (await $consoleVariables)?._APP_DOMAIN_ENABLED === true;
- });
+ const isDomainsEnabled = $consoleVariables?._APP_DOMAIN_ENABLED === true;
async function createDomain() {
try {
diff --git a/src/lib/wizards/functions/cover.svelte b/src/lib/wizards/functions/cover.svelte
index 189ed47d27..dd6c2a22af 100644
--- a/src/lib/wizards/functions/cover.svelte
+++ b/src/lib/wizards/functions/cover.svelte
@@ -28,7 +28,7 @@
@@ -60,7 +62,7 @@
{$template.tagline}
- {#if isSelfHosted && !isVcsEnabled($consoleVariables)}
+ {#if isSelfHosted && !isVcsEnabled}
Cloning templates to a self-hosted instance
diff --git a/src/routes/console/project-[project]/settings/updateInstallations.svelte b/src/routes/console/project-[project]/settings/updateInstallations.svelte
index a61bd158b3..a3c6d52731 100644
--- a/src/routes/console/project-[project]/settings/updateInstallations.svelte
+++ b/src/routes/console/project-[project]/settings/updateInstallations.svelte
@@ -29,7 +29,7 @@
import GitDisconnectModal from './GitDisconnectModal.svelte';
import dayjs from 'dayjs';
import { isSelfHosted } from '$lib/system';
- import { consoleVariables, isVcsEnabled } from '$routes/console/store';
+ import { consoleVariables } from '$routes/console/store';
export let total: number;
export let limit: number;
@@ -40,6 +40,7 @@
let showGitDisconnect = false;
let showInstallationDropdown: boolean[] = [];
let selectedInstallation: Models.Installation;
+ const isVcsEnabled = $consoleVariables?._APP_VCS_ENABLED === true;
function getInstallationLink(installation: Models.Installation) {
switch (installation.provider) {
@@ -180,7 +181,7 @@
bind:offset />
{:else}
- {#if isSelfHosted && !isVcsEnabled($consoleVariables)}
+ {#if isSelfHosted && !isVcsEnabled}
Installing Git to a self-hosted instance
@@ -203,7 +204,7 @@