28 lines
1.1 KiB
Vue
28 lines
1.1 KiB
Vue
<template>
|
|
<CommonAlert color="info">
|
|
<template #title>Upgrade your workspace</template>
|
|
<template #description>
|
|
{{ description }}
|
|
</template>
|
|
</CommonAlert>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { WorkspacePlans, type MaybeNullOrUndefined } from '@speckle/shared'
|
|
|
|
const props = defineProps<{
|
|
planName: MaybeNullOrUndefined<WorkspacePlans>
|
|
}>()
|
|
|
|
const description = computed(() => {
|
|
if (!props.planName) return ''
|
|
|
|
if (props.planName === WorkspacePlans.Team)
|
|
return 'Your workspace has reached a usage limit. To keep using Speckle, you can buy the Unlimited projects and models add-on to your current Starter plan, or upgrade to the Business plan.'
|
|
if (props.planName === WorkspacePlans.Pro)
|
|
return 'Your workspace has reached a usage limit. To keep using Speckle, you can buy the Unlimited projects and models add-on to your current Business plan.'
|
|
|
|
return 'Your workspace has reached a usage limit. To keep using Speckle, you should upgrade your workspace to the Starter or Business plan. Note that both plans can be extended with the Unlimited projects and models add-on.'
|
|
})
|
|
</script>
|