d3931f1855
* Readd work from old branch * Improved Login.vue * Replace watch with onResult * Server: Error improvement * FE Middleware * Update style * Delete Sso. Mixpanel events * Updates * Improved loading state * Invites. Register sso page * Middleware improvements. Session error no logout * Changes from deisgns * Swap button to LayoutMenu * Improve middleware * Remove typo * Fix errormessage * Remove edit functionality * New composable file for sso * Improved names for composables. Tidyups * Reactive errors * Reorder Login.vue * Improved Typeguard * Enum * Comments from Mike * Add error toast * Remove FormButton from LoginButtonBase * Use linkComponent prop * Move workspace select to new component * Fragmentation * Fix loading useFetch * use WorkspaceAvatar * Feature flag sso button * Update fragment name * Skip middleware during auth flow * Add rules to Workspace Selector * Reactive useWorkspacePublicSsoCheck * AuthRegisterNewsletter types * v-bind on Select * Fragment WrapperSecurity * Remove useForm from Form.vue * Reactive values in composables * Prevent infinite loading when no invite found * useWorkspaceSsoValidation maybeRef * Added comment to requireSsoEnabled * Bugfix * Update Button.vue * Fix form * Update valid model middleware * Update LoginButtonBase.vue * NewsletterConset ref * use setFieldValue * Update Login.vue * Swap mayberef to ref * Comments from PR * Changes from call with Fabs * Fix session-error bug * Fix circleci * Small fix to index
26 lines
658 B
Vue
26 lines
658 B
Vue
<template>
|
|
<div class="flex justify-center">
|
|
<WorkspaceInviteBlock v-if="invite" :invite="invite" />
|
|
<CommonLoadingIcon v-else-if="loading" />
|
|
<div v-else>No invite found</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { useQuery } from '@vue/apollo-composable'
|
|
import { workspaceInviteQuery } from '~/lib/workspaces/graphql/queries'
|
|
|
|
const props = defineProps<{
|
|
workspaceSlug: string
|
|
token: string
|
|
}>()
|
|
|
|
const { result, loading } = useQuery(workspaceInviteQuery, {
|
|
workspaceId: props.workspaceSlug,
|
|
token: props.token,
|
|
options: { useSlug: true }
|
|
})
|
|
|
|
const invite = computed(() => result.value?.workspaceInvite)
|
|
</script>
|