be898dbe6b
* prevent recursive layout rendering with named slots * Workspace sidebar desktop * Responsiveness * Billing * Edit icons * Fragmentation * Spacing updates * Fragmentation * Mobile updates * Full notification for non-trial * Readd workspace role * New icon. Invite dialog * Avatar Group count * Add select-none * Updates * Updates * Fix build * New layout * Mobile sidebar fix * BillingAlert update logic * Updates from CR * New empty state * Admin/Guest checks * Changes from Benjamin * Changes from michal * Mobile changes * Remove fullstop * Update propname. Optional buttonCopy * Improved project card grid * Workspace page prop --------- Co-authored-by: Mike Tasset <mike.tasset@gmail.com>
50 lines
1.3 KiB
Vue
50 lines
1.3 KiB
Vue
<template>
|
|
<CommonCard class="mb-4 bg-foundation text-body-xs !py-4">
|
|
<p class="text-foreground">
|
|
<span class="font-medium">
|
|
{{ hiddenItemCount }} project{{ hiddenItemCount === 1 ? '' : 's' }}
|
|
{{ hiddenItemCount === 1 ? 'is' : 'are' }} hidden
|
|
</span>
|
|
in SSO-protected workspaces. To view {{ hiddenItemCount === 1 ? 'it' : 'them' }},
|
|
authenticate with:
|
|
</p>
|
|
<div class="flex flex-wrap gap-2 mt-2">
|
|
<FormButton
|
|
v-for="session in user.expiredSsoSessions"
|
|
:key="session.id"
|
|
size="sm"
|
|
:to="workspaceSsoRoute(session.slug)"
|
|
color="outline"
|
|
>
|
|
<div class="flex items-center gap-1">
|
|
<WorkspaceAvatar size="2xs" :name="session.name" :logo="session.logo" />
|
|
{{ session.name }}
|
|
</div>
|
|
</FormButton>
|
|
</div>
|
|
</CommonCard>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { graphql } from '~~/lib/common/generated/gql'
|
|
import type { ProjectsHiddenProjectWarning_UserFragment } from '~~/lib/common/generated/gql/graphql'
|
|
import { workspaceSsoRoute } from '~/lib/common/helpers/route'
|
|
|
|
graphql(`
|
|
fragment ProjectsHiddenProjectWarning_User on User {
|
|
id
|
|
expiredSsoSessions {
|
|
id
|
|
slug
|
|
name
|
|
logo
|
|
}
|
|
}
|
|
`)
|
|
|
|
defineProps<{
|
|
hiddenItemCount: number
|
|
user: ProjectsHiddenProjectWarning_UserFragment
|
|
}>()
|
|
</script>
|