Move LearnMoreRolesSeatsUrl to route.ts
This commit is contained in:
@@ -38,8 +38,7 @@
|
||||
<script setup lang="ts">
|
||||
import type { LayoutDialogButton } from '@speckle/ui-components'
|
||||
import type { UserItem } from '~/components/settings/workspaces/members/new/MembersTable.vue'
|
||||
import { LearnMoreRolesSeatsUrl } from '~/lib/settings/helpers/constants'
|
||||
|
||||
import { LearnMoreRolesSeatsUrl } from '~/lib/common/helpers/route'
|
||||
const props = defineProps<{
|
||||
user: UserItem
|
||||
title: string
|
||||
|
||||
@@ -84,8 +84,9 @@ import { graphql } from '~/lib/common/generated/gql'
|
||||
import { Roles, type MaybeNullOrUndefined } from '@speckle/shared'
|
||||
import { settingsWorkspacesMembersSearchQuery } from '~~/lib/settings/graphql/queries'
|
||||
import { useQuery } from '@vue/apollo-composable'
|
||||
import { LearnMoreRolesSeatsUrl } from '~/lib/settings/helpers/constants'
|
||||
import SeatTypeDisplay from '../SeatTypeDisplay.vue'
|
||||
import { LearnMoreRolesSeatsUrl } from '~~/lib/common/helpers/route'
|
||||
|
||||
graphql(`
|
||||
fragment SettingsWorkspacesMembersNewGuestsTable_WorkspaceCollaborator on WorkspaceCollaborator {
|
||||
id
|
||||
|
||||
@@ -92,9 +92,8 @@ import { useQuery } from '@vue/apollo-composable'
|
||||
import type { SettingsWorkspacesNewMembersTable_WorkspaceFragment } from '~~/lib/common/generated/gql/graphql'
|
||||
import { graphql } from '~/lib/common/generated/gql'
|
||||
import { ExclamationCircleIcon } from '@heroicons/vue/24/outline'
|
||||
import { LearnMoreRolesSeatsUrl } from '~/lib/settings/helpers/constants'
|
||||
import SeatTypeDisplay from '../SeatTypeDisplay.vue'
|
||||
|
||||
import { LearnMoreRolesSeatsUrl } from '~~/lib/common/helpers/route'
|
||||
export type UserItem = (typeof members)['value'][0]
|
||||
|
||||
graphql(`
|
||||
|
||||
@@ -213,3 +213,7 @@ export const doesRouteFitTarget = (fullPathA: string, fullPathB: string) => {
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
// Link to Workspace roles and seats documentation
|
||||
// TODO: Add link when ready
|
||||
export const LearnMoreRolesSeatsUrl = 'https://speckle.guide/'
|
||||
|
||||
@@ -5,9 +5,6 @@ import {
|
||||
import { Roles } from '@speckle/shared'
|
||||
import { WorkspaceSeatType } from '~/lib/common/generated/gql/graphql'
|
||||
|
||||
// TODO: Add link when ready
|
||||
export const LearnMoreRolesSeatsUrl = 'https://speckle.guide/'
|
||||
|
||||
export const WorkspaceRoleDescriptions: Record<string, string> = {
|
||||
[Roles.Workspace.Admin]:
|
||||
'Can edit workspaces, including settings, members and all projects',
|
||||
|
||||
Reference in New Issue
Block a user