From 1fdb0f2d049c7d499a866e8524b86cec0e837877 Mon Sep 17 00:00:00 2001
From: James George <25279263+jamesgeorge007@users.noreply.github.com>
Date: Wed, 7 Aug 2024 09:12:37 -0700
Subject: [PATCH] chore: hide duplicate `Global environment` action for a team
workspace (#4245)
---
.../src/components/environments/index.vue | 7 ++-
.../environments/my/Environment.vue | 63 +++++++++++--------
2 files changed, 42 insertions(+), 28 deletions(-)
diff --git a/packages/hoppscotch-common/src/components/environments/index.vue b/packages/hoppscotch-common/src/components/environments/index.vue
index 78aa25f1c..cc239d7d6 100644
--- a/packages/hoppscotch-common/src/components/environments/index.vue
+++ b/packages/hoppscotch-common/src/components/environments/index.vue
@@ -7,11 +7,12 @@
-
+
({
variables: globalEnv.value,
}))
+const isPersonalEnvironmentType = computed(
+ () => environmentType.value.type === "my-environments"
+)
+
const currentUser = useReadonlyStream(
platform.auth.getCurrentUserStream(),
platform.auth.getCurrentUser()
diff --git a/packages/hoppscotch-common/src/components/environments/my/Environment.vue b/packages/hoppscotch-common/src/components/environments/my/Environment.vue
index e5f8a80ea..0a1189a51 100644
--- a/packages/hoppscotch-common/src/components/environments/my/Environment.vue
+++ b/packages/hoppscotch-common/src/components/environments/my/Environment.vue
@@ -1,7 +1,7 @@
{
@@ -117,34 +118,40 @@