Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
Hide "Team Collections" tab if user has no access
Andrew Bastinb9c321909462
diff --git a/components/collections/ChooseType.vue b/components/collections/ChooseType.vueindex 89222ca28..a87b6525d 100644--- a/components/collections/ChooseType.vue+++ b/components/collections/ChooseType.vue@@ -2,7 +2,11 @@<div v-if="show"><SmartTabs styles="m-4" :id="'collections_tab'" v-on:tab-changed="updateCollectionsType"><SmartTab :id="'my-collections'" :label="'My Collections'" :selected="true"> </SmartTab>- <SmartTab :id="'team-collections'" :label="'Team Collections'">+ <SmartTab+ :id="'team-collections'"+ :label="'Team Collections'"+ v-if="currentUser && currentUser.eaInvited"+ ><ul><li><span class="select-wrapper">@@ -32,11 +36,17 @@<script>import gql from "graphql-tag"+import { currentUserInfo$ } from "~/helpers/teams/BackendUserInfo"export default {props: {show: Boolean,},+ subscriptions() {+ return {+ currentUser: currentUserInfo$,+ }+ },apollo: {myTeams: {query: gql`