fix: resolved #2771
This commit is contained in:
@@ -168,7 +168,7 @@
|
|||||||
"members": "Span is leeg",
|
"members": "Span is leeg",
|
||||||
"parameters": "Hierdie versoek het geen parameters nie",
|
"parameters": "Hierdie versoek het geen parameters nie",
|
||||||
"pending_invites": "There are no pending invites for this team",
|
"pending_invites": "There are no pending invites for this team",
|
||||||
"profile": "Login in to view your profile",
|
"profile": "Login to view your profile",
|
||||||
"protocols": "Protokolle is leeg",
|
"protocols": "Protokolle is leeg",
|
||||||
"schema": "Koppel aan 'n GraphQL -eindpunt",
|
"schema": "Koppel aan 'n GraphQL -eindpunt",
|
||||||
"shortcodes": "Shortcodes are empty",
|
"shortcodes": "Shortcodes are empty",
|
||||||
|
|||||||
@@ -168,7 +168,7 @@
|
|||||||
"members": "Tým je prázdný",
|
"members": "Tým je prázdný",
|
||||||
"parameters": "Tento požadavek nemá žádné parametry",
|
"parameters": "Tento požadavek nemá žádné parametry",
|
||||||
"pending_invites": "There are no pending invites for this team",
|
"pending_invites": "There are no pending invites for this team",
|
||||||
"profile": "Login in to view your profile",
|
"profile": "Login to view your profile",
|
||||||
"protocols": "Protokoly jsou prázdné",
|
"protocols": "Protokoly jsou prázdné",
|
||||||
"schema": "Připojte se ke koncovému bodu GraphQL",
|
"schema": "Připojte se ke koncovému bodu GraphQL",
|
||||||
"shortcodes": "Shortcodes are empty",
|
"shortcodes": "Shortcodes are empty",
|
||||||
|
|||||||
@@ -168,7 +168,7 @@
|
|||||||
"members": "Holdet er tomt",
|
"members": "Holdet er tomt",
|
||||||
"parameters": "Denne anmodning har ingen parametre",
|
"parameters": "Denne anmodning har ingen parametre",
|
||||||
"pending_invites": "There are no pending invites for this team",
|
"pending_invites": "There are no pending invites for this team",
|
||||||
"profile": "Login in to view your profile",
|
"profile": "Login to view your profile",
|
||||||
"protocols": "Protokoller er tomme",
|
"protocols": "Protokoller er tomme",
|
||||||
"schema": "Opret forbindelse til et GraphQL -slutpunkt",
|
"schema": "Opret forbindelse til et GraphQL -slutpunkt",
|
||||||
"shortcodes": "Shortcodes are empty",
|
"shortcodes": "Shortcodes are empty",
|
||||||
|
|||||||
@@ -168,7 +168,7 @@
|
|||||||
"members": "Η ομάδα είναι άδεια",
|
"members": "Η ομάδα είναι άδεια",
|
||||||
"parameters": "Αυτό το αίτημα δεν έχει παραμέτρους",
|
"parameters": "Αυτό το αίτημα δεν έχει παραμέτρους",
|
||||||
"pending_invites": "There are no pending invites for this team",
|
"pending_invites": "There are no pending invites for this team",
|
||||||
"profile": "Login in to view your profile",
|
"profile": "Login to view your profile",
|
||||||
"protocols": "Τα πρωτόκολλα είναι κενά",
|
"protocols": "Τα πρωτόκολλα είναι κενά",
|
||||||
"schema": "Συνδεθείτε σε ένα τελικό σημείο GraphQL",
|
"schema": "Συνδεθείτε σε ένα τελικό σημείο GraphQL",
|
||||||
"shortcodes": "Shortcodes are empty",
|
"shortcodes": "Shortcodes are empty",
|
||||||
|
|||||||
@@ -168,7 +168,7 @@
|
|||||||
"members": "Team is empty",
|
"members": "Team is empty",
|
||||||
"parameters": "This request does not have any parameters",
|
"parameters": "This request does not have any parameters",
|
||||||
"pending_invites": "There are no pending invites for this team",
|
"pending_invites": "There are no pending invites for this team",
|
||||||
"profile": "Login in to view your profile",
|
"profile": "Login to view your profile",
|
||||||
"protocols": "Protocols are empty",
|
"protocols": "Protocols are empty",
|
||||||
"schema": "Connect to a GraphQL endpoint to view schema",
|
"schema": "Connect to a GraphQL endpoint to view schema",
|
||||||
"shortcodes": "Shortcodes are empty",
|
"shortcodes": "Shortcodes are empty",
|
||||||
|
|||||||
@@ -168,7 +168,7 @@
|
|||||||
"members": "Joukkue on tyhjä",
|
"members": "Joukkue on tyhjä",
|
||||||
"parameters": "Tässä pyynnössä ei ole parametreja",
|
"parameters": "Tässä pyynnössä ei ole parametreja",
|
||||||
"pending_invites": "There are no pending invites for this team",
|
"pending_invites": "There are no pending invites for this team",
|
||||||
"profile": "Login in to view your profile",
|
"profile": "Login to view your profile",
|
||||||
"protocols": "Protokollat ovat tyhjiä",
|
"protocols": "Protokollat ovat tyhjiä",
|
||||||
"schema": "Muodosta yhteys GraphQL -päätepisteeseen",
|
"schema": "Muodosta yhteys GraphQL -päätepisteeseen",
|
||||||
"shortcodes": "Shortcodes are empty",
|
"shortcodes": "Shortcodes are empty",
|
||||||
|
|||||||
@@ -168,7 +168,7 @@
|
|||||||
"members": "הקבוצה ריקה",
|
"members": "הקבוצה ריקה",
|
||||||
"parameters": "לבקשה זו אין פרמטרים",
|
"parameters": "לבקשה זו אין פרמטרים",
|
||||||
"pending_invites": "There are no pending invites for this team",
|
"pending_invites": "There are no pending invites for this team",
|
||||||
"profile": "Login in to view your profile",
|
"profile": "Login to view your profile",
|
||||||
"protocols": "הפרוטוקולים ריקים",
|
"protocols": "הפרוטוקולים ריקים",
|
||||||
"schema": "התחבר לנקודת קצה של GraphQL",
|
"schema": "התחבר לנקודת קצה של GraphQL",
|
||||||
"shortcodes": "Shortcodes are empty",
|
"shortcodes": "Shortcodes are empty",
|
||||||
|
|||||||
@@ -168,7 +168,7 @@
|
|||||||
"members": "Team is empty",
|
"members": "Team is empty",
|
||||||
"parameters": "This request does not have any parameters",
|
"parameters": "This request does not have any parameters",
|
||||||
"pending_invites": "There are no pending invites for this team",
|
"pending_invites": "There are no pending invites for this team",
|
||||||
"profile": "Login in to view your profile",
|
"profile": "Login to view your profile",
|
||||||
"protocols": "Protocols are empty",
|
"protocols": "Protocols are empty",
|
||||||
"schema": "Connect to a GraphQL endpoint to view schema",
|
"schema": "Connect to a GraphQL endpoint to view schema",
|
||||||
"shortcodes": "Shortcodes are empty",
|
"shortcodes": "Shortcodes are empty",
|
||||||
|
|||||||
@@ -168,7 +168,7 @@
|
|||||||
"members": "Team is leeg",
|
"members": "Team is leeg",
|
||||||
"parameters": "Dit verzoek heeft geen parameters",
|
"parameters": "Dit verzoek heeft geen parameters",
|
||||||
"pending_invites": "There are no pending invites for this team",
|
"pending_invites": "There are no pending invites for this team",
|
||||||
"profile": "Login in to view your profile",
|
"profile": "Login to view your profile",
|
||||||
"protocols": "Protocollen zijn leeg",
|
"protocols": "Protocollen zijn leeg",
|
||||||
"schema": "Verbinding maken met een GraphQL-eindpunt",
|
"schema": "Verbinding maken met een GraphQL-eindpunt",
|
||||||
"shortcodes": "Shortcodes are empty",
|
"shortcodes": "Shortcodes are empty",
|
||||||
|
|||||||
@@ -168,7 +168,7 @@
|
|||||||
"members": "Teamet er tomt",
|
"members": "Teamet er tomt",
|
||||||
"parameters": "Denne forespørselen har ingen parametere",
|
"parameters": "Denne forespørselen har ingen parametere",
|
||||||
"pending_invites": "There are no pending invites for this team",
|
"pending_invites": "There are no pending invites for this team",
|
||||||
"profile": "Login in to view your profile",
|
"profile": "Login to view your profile",
|
||||||
"protocols": "Protokoller er tomme",
|
"protocols": "Protokoller er tomme",
|
||||||
"schema": "Koble til et GraphQL-endepunkt",
|
"schema": "Koble til et GraphQL-endepunkt",
|
||||||
"shortcodes": "Shortcodes are empty",
|
"shortcodes": "Shortcodes are empty",
|
||||||
|
|||||||
@@ -168,7 +168,7 @@
|
|||||||
"members": "Zespół jest pusty",
|
"members": "Zespół jest pusty",
|
||||||
"parameters": "To żądanie nie ma żadnych parametrów",
|
"parameters": "To żądanie nie ma żadnych parametrów",
|
||||||
"pending_invites": "There are no pending invites for this team",
|
"pending_invites": "There are no pending invites for this team",
|
||||||
"profile": "Login in to view your profile",
|
"profile": "Login to view your profile",
|
||||||
"protocols": "Protokoły są puste",
|
"protocols": "Protokoły są puste",
|
||||||
"schema": "Połącz się z punktem końcowym GraphQL",
|
"schema": "Połącz się z punktem końcowym GraphQL",
|
||||||
"shortcodes": "Shortcodes are empty",
|
"shortcodes": "Shortcodes are empty",
|
||||||
|
|||||||
@@ -168,7 +168,7 @@
|
|||||||
"members": "Time está vazio",
|
"members": "Time está vazio",
|
||||||
"parameters": "Esta solicitação não possui parâmetros",
|
"parameters": "Esta solicitação não possui parâmetros",
|
||||||
"pending_invites": "There are no pending invites for this team",
|
"pending_invites": "There are no pending invites for this team",
|
||||||
"profile": "Login in to view your profile",
|
"profile": "Login to view your profile",
|
||||||
"protocols": "Os protocolos estão vazios",
|
"protocols": "Os protocolos estão vazios",
|
||||||
"schema": "Conecte-se a um endpoint GraphQL",
|
"schema": "Conecte-se a um endpoint GraphQL",
|
||||||
"shortcodes": "Shortcodes are empty",
|
"shortcodes": "Shortcodes are empty",
|
||||||
|
|||||||
@@ -168,7 +168,7 @@
|
|||||||
"members": "Тим је празан",
|
"members": "Тим је празан",
|
||||||
"parameters": "Овај захтев нема параметре",
|
"parameters": "Овај захтев нема параметре",
|
||||||
"pending_invites": "There are no pending invites for this team",
|
"pending_invites": "There are no pending invites for this team",
|
||||||
"profile": "Login in to view your profile",
|
"profile": "Login to view your profile",
|
||||||
"protocols": "Протоколи су празни",
|
"protocols": "Протоколи су празни",
|
||||||
"schema": "Повежите се са ГрапхКЛ крајњом тачком",
|
"schema": "Повежите се са ГрапхКЛ крајњом тачком",
|
||||||
"shortcodes": "Shortcodes are empty",
|
"shortcodes": "Shortcodes are empty",
|
||||||
|
|||||||
@@ -168,7 +168,7 @@
|
|||||||
"members": "Teamet är tomt",
|
"members": "Teamet är tomt",
|
||||||
"parameters": "Denna begäran har inga parametrar",
|
"parameters": "Denna begäran har inga parametrar",
|
||||||
"pending_invites": "There are no pending invites for this team",
|
"pending_invites": "There are no pending invites for this team",
|
||||||
"profile": "Login in to view your profile",
|
"profile": "Login to view your profile",
|
||||||
"protocols": "Protokoll är tomma",
|
"protocols": "Protokoll är tomma",
|
||||||
"schema": "Anslut till en GraphQL -slutpunkt",
|
"schema": "Anslut till en GraphQL -slutpunkt",
|
||||||
"shortcodes": "Shortcodes are empty",
|
"shortcodes": "Shortcodes are empty",
|
||||||
|
|||||||
@@ -168,7 +168,7 @@
|
|||||||
"members": "Đội trống",
|
"members": "Đội trống",
|
||||||
"parameters": "Yêu cầu này không có bất kỳ thông số nào",
|
"parameters": "Yêu cầu này không có bất kỳ thông số nào",
|
||||||
"pending_invites": "There are no pending invites for this team",
|
"pending_invites": "There are no pending invites for this team",
|
||||||
"profile": "Login in to view your profile",
|
"profile": "Login to view your profile",
|
||||||
"protocols": "Giao thức trống",
|
"protocols": "Giao thức trống",
|
||||||
"schema": "Kết nối với một điểm cuối GraphQL",
|
"schema": "Kết nối với một điểm cuối GraphQL",
|
||||||
"shortcodes": "Shortcodes are empty",
|
"shortcodes": "Shortcodes are empty",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div v-show="show">
|
<div>
|
||||||
<SmartTabs
|
<SmartTabs
|
||||||
:id="'collections_tab'"
|
:id="'collections_tab'"
|
||||||
v-model="selectedCollectionTab"
|
v-model="selectedCollectionTab"
|
||||||
@@ -10,9 +10,9 @@
|
|||||||
:label="`${t('collection.my_collections')}`"
|
:label="`${t('collection.my_collections')}`"
|
||||||
/>
|
/>
|
||||||
<SmartTab
|
<SmartTab
|
||||||
v-if="currentUser"
|
|
||||||
:id="'team-collections'"
|
:id="'team-collections'"
|
||||||
:label="`${t('collection.team_collections')}`"
|
:label="`${t('collection.team_collections')}`"
|
||||||
|
:disabled="!currentUser"
|
||||||
>
|
>
|
||||||
<SmartIntersection @intersecting="onTeamSelectIntersect">
|
<SmartIntersection @intersecting="onTeamSelectIntersect">
|
||||||
<tippy
|
<tippy
|
||||||
@@ -98,7 +98,6 @@ const tippyActions = ref<any | null>(null)
|
|||||||
const selectedCollectionTab = ref<CollectionTabs>("my-collections")
|
const selectedCollectionTab = ref<CollectionTabs>("my-collections")
|
||||||
|
|
||||||
defineProps<{
|
defineProps<{
|
||||||
show: boolean
|
|
||||||
collectionsType: {
|
collectionsType: {
|
||||||
type: "my-collections" | "team-collections"
|
type: "my-collections" | "team-collections"
|
||||||
selectedTeam: Team | undefined
|
selectedTeam: Team | undefined
|
||||||
|
|||||||
@@ -18,7 +18,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<CollectionsChooseType
|
<CollectionsChooseType
|
||||||
:collections-type="collectionsType"
|
:collections-type="collectionsType"
|
||||||
:show="showTeamCollections"
|
|
||||||
@update-collection-type="updateCollectionType"
|
@update-collection-type="updateCollectionType"
|
||||||
@update-selected-team="updateSelectedTeam"
|
@update-selected-team="updateSelectedTeam"
|
||||||
/>
|
/>
|
||||||
@@ -323,12 +322,6 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
showTeamCollections() {
|
|
||||||
if (this.currentUser == null) {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
return true
|
|
||||||
},
|
|
||||||
filteredCollections() {
|
filteredCollections() {
|
||||||
const collections =
|
const collections =
|
||||||
this.collectionsType.type === "my-collections"
|
this.collectionsType.type === "my-collections"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div v-show="show">
|
<div>
|
||||||
<SmartTabs
|
<SmartTabs
|
||||||
:id="'environments_tab'"
|
:id="'environments_tab'"
|
||||||
v-model="selectedEnvironmentTab"
|
v-model="selectedEnvironmentTab"
|
||||||
@@ -10,9 +10,9 @@
|
|||||||
:label="`${t('environment.my_environments')}`"
|
:label="`${t('environment.my_environments')}`"
|
||||||
/>
|
/>
|
||||||
<SmartTab
|
<SmartTab
|
||||||
v-if="currentUser"
|
|
||||||
:id="'team-environments'"
|
:id="'team-environments'"
|
||||||
:label="`${t('environment.team_environments')}`"
|
:label="`${t('environment.team_environments')}`"
|
||||||
|
:disabled="!currentUser"
|
||||||
>
|
>
|
||||||
<SmartIntersection @intersecting="onTeamSelectIntersect">
|
<SmartIntersection @intersecting="onTeamSelectIntersect">
|
||||||
<tippy
|
<tippy
|
||||||
@@ -98,7 +98,6 @@ const tippyActions = ref<any | null>(null)
|
|||||||
const selectedEnvironmentTab = ref<EnvironmentTabs>("my-environments")
|
const selectedEnvironmentTab = ref<EnvironmentTabs>("my-environments")
|
||||||
|
|
||||||
defineProps<{
|
defineProps<{
|
||||||
show: boolean
|
|
||||||
environmentType: {
|
environmentType: {
|
||||||
type: "my-environments" | "team-environments"
|
type: "my-environments" | "team-environments"
|
||||||
selectedTeam: SelectedTeam
|
selectedTeam: SelectedTeam
|
||||||
|
|||||||
@@ -151,7 +151,6 @@
|
|||||||
</tippy>
|
</tippy>
|
||||||
<EnvironmentsChooseType
|
<EnvironmentsChooseType
|
||||||
:environment-type="environmentType"
|
:environment-type="environmentType"
|
||||||
:show="showTeamEnvironment"
|
|
||||||
@update-environment-type="updateEnvironmentType"
|
@update-environment-type="updateEnvironmentType"
|
||||||
@update-selected-team="updateSelectedTeam"
|
@update-selected-team="updateSelectedTeam"
|
||||||
/>
|
/>
|
||||||
@@ -202,13 +201,6 @@ const environmentType = ref<EnvironmentsChooseType>({
|
|||||||
|
|
||||||
const currentUser = useReadonlyStream(currentUser$, null)
|
const currentUser = useReadonlyStream(currentUser$, null)
|
||||||
|
|
||||||
const showTeamEnvironment = computed(() => {
|
|
||||||
if (currentUser.value == null) {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
return true
|
|
||||||
})
|
|
||||||
|
|
||||||
const updateSelectedTeam = (newSelectedTeam: SelectedTeam) => {
|
const updateSelectedTeam = (newSelectedTeam: SelectedTeam) => {
|
||||||
environmentType.value.selectedTeam = newSelectedTeam
|
environmentType.value.selectedTeam = newSelectedTeam
|
||||||
}
|
}
|
||||||
@@ -232,6 +224,15 @@ watch(
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
watch(
|
||||||
|
() => currentUser.value,
|
||||||
|
(newValue) => {
|
||||||
|
if (!newValue) {
|
||||||
|
updateEnvironmentType("my-environments")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
const myEnvironments = useReadonlyStream(environments$, [])
|
const myEnvironments = useReadonlyStream(environments$, [])
|
||||||
|
|
||||||
const selectedEnvironmentIndex = useStream(
|
const selectedEnvironmentIndex = useStream(
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div
|
<div
|
||||||
class="sticky z-10 top-upperPrimaryStickyFold flex justify-between flex-1 border-b border-dividerLight bg-primary"
|
class="sticky z-10 flex justify-between flex-1 border-b top-upperPrimaryStickyFold border-dividerLight bg-primary"
|
||||||
>
|
>
|
||||||
<ButtonSecondary
|
<ButtonSecondary
|
||||||
:icon="IconPlus"
|
:icon="IconPlus"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div
|
<div
|
||||||
class="sticky z-10 top-upperSecondaryStickyFold flex justify-between flex-1 border-b border-dividerLight bg-primary"
|
class="sticky z-10 flex justify-between flex-1 border-b top-upperSecondaryStickyFold border-dividerLight bg-primary"
|
||||||
>
|
>
|
||||||
<ButtonSecondary
|
<ButtonSecondary
|
||||||
v-if="team === undefined || team.myRole === 'VIEWER'"
|
v-if="team === undefined || team.myRole === 'VIEWER'"
|
||||||
|
|||||||
@@ -23,11 +23,13 @@ const props = withDefaults(
|
|||||||
icon?: Component | object | string | null
|
icon?: Component | object | string | null
|
||||||
info?: string | null
|
info?: string | null
|
||||||
indicator?: boolean
|
indicator?: boolean
|
||||||
|
disabled?: boolean
|
||||||
}>(),
|
}>(),
|
||||||
{
|
{
|
||||||
icon: null,
|
icon: null,
|
||||||
indicator: false,
|
indicator: false,
|
||||||
info: null,
|
info: null,
|
||||||
|
disabled: false,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -41,6 +43,7 @@ const tabMeta = computed<TabMeta>(() => ({
|
|||||||
indicator: props.indicator,
|
indicator: props.indicator,
|
||||||
info: props.info,
|
info: props.info,
|
||||||
label: props.label,
|
label: props.label,
|
||||||
|
disabled: props.disabled,
|
||||||
}))
|
}))
|
||||||
|
|
||||||
const {
|
const {
|
||||||
|
|||||||
@@ -25,8 +25,10 @@
|
|||||||
:class="[
|
:class="[
|
||||||
{ active: modelValue === tabID },
|
{ active: modelValue === tabID },
|
||||||
{ vertical: vertical },
|
{ vertical: vertical },
|
||||||
|
{ 'opacity-75 !cursor-not-allowed': tabMeta.disabled },
|
||||||
]"
|
]"
|
||||||
:aria-label="tabMeta.label || ''"
|
:aria-label="tabMeta.label || ''"
|
||||||
|
:disabled="tabMeta.disabled"
|
||||||
role="button"
|
role="button"
|
||||||
@keyup.enter="selectTab(tabID)"
|
@keyup.enter="selectTab(tabID)"
|
||||||
@click="selectTab(tabID)"
|
@click="selectTab(tabID)"
|
||||||
@@ -80,6 +82,7 @@ export type TabMeta = {
|
|||||||
icon: string | Component | null
|
icon: string | Component | null
|
||||||
indicator: boolean
|
indicator: boolean
|
||||||
info: string | null
|
info: string | null
|
||||||
|
disabled: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export type TabProvider = {
|
export type TabProvider = {
|
||||||
|
|||||||
Reference in New Issue
Block a user