From d050b99fb218ae31dfd0ec7dea88884e14021495 Mon Sep 17 00:00:00 2001 From: Omar Ajoue Date: Thu, 27 Jul 2023 12:11:43 +0200 Subject: [PATCH] fix: Display source control buttons properly (#6756) --- .../src/components/MainSidebarSourceControl.vue | 9 ++------- .../__tests__/MainSidebarSourceControl.test.ts | 12 +++++------- 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/packages/editor-ui/src/components/MainSidebarSourceControl.vue b/packages/editor-ui/src/components/MainSidebarSourceControl.vue index e04e64907..6fd0a1d66 100644 --- a/packages/editor-ui/src/components/MainSidebarSourceControl.vue +++ b/packages/editor-ui/src/components/MainSidebarSourceControl.vue @@ -31,11 +31,6 @@ const tooltipOpenDelay = ref(300); const currentBranch = computed(() => { return sourceControlStore.preferences.branchName; }); -const featureEnabled = computed(() => window.localStorage.getItem('source-control')); -// TODO: use this for release -// const featureEnabled = computed( -// () => sourceControlStore.preferences.connected && sourceControlStore.preferences.branchName, -// ); const isInstanceOwner = computed(() => usersStore.isInstanceOwner); const setupButtonTooltipPlacement = computed(() => (props.isCollapsed ? 'right' : 'top')); @@ -125,11 +120,11 @@ const goToSourceControlSetup = async () => {