Hide "Team Collections" tab if user has no access
This commit is contained in:
@@ -2,7 +2,11 @@
|
|||||||
<div v-if="show">
|
<div v-if="show">
|
||||||
<SmartTabs styles="m-4" :id="'collections_tab'" v-on:tab-changed="updateCollectionsType">
|
<SmartTabs styles="m-4" :id="'collections_tab'" v-on:tab-changed="updateCollectionsType">
|
||||||
<SmartTab :id="'my-collections'" :label="'My Collections'" :selected="true"> </SmartTab>
|
<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>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<span class="select-wrapper">
|
<span class="select-wrapper">
|
||||||
@@ -32,11 +36,17 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import gql from "graphql-tag"
|
import gql from "graphql-tag"
|
||||||
|
import { currentUserInfo$ } from "~/helpers/teams/BackendUserInfo"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
show: Boolean,
|
show: Boolean,
|
||||||
},
|
},
|
||||||
|
subscriptions() {
|
||||||
|
return {
|
||||||
|
currentUser: currentUserInfo$,
|
||||||
|
}
|
||||||
|
},
|
||||||
apollo: {
|
apollo: {
|
||||||
myTeams: {
|
myTeams: {
|
||||||
query: gql`
|
query: gql`
|
||||||
|
|||||||
Reference in New Issue
Block a user