1
0
mirror of https://gitlab.com/bramw/baserow.git synced 2024-09-18 18:47:56 +00:00
bramw_baserow/premium/web-frontend/modules/baserow_premium/components/PremiumModal.vue
2024-05-10 06:56:26 +00:00

60 lines
1.3 KiB
Vue

<template>
<Modal>
<h2 class="box__title">
{{ $t('premiumModal.title', { name }) }}
</h2>
<div>
<p>
{{ $t('premiumModal.description', { name }) }}
</p>
<PremiumFeatures class="margin-bottom-3"></PremiumFeatures>
<div>
<Button
type="primary"
size="large"
href="https://baserow.io/pricing"
target="_blank"
tag="a"
>{{ $t('premiumModal.viewPricing') }}</Button
>
<component
:is="buttonsComponent"
v-if="workspace && buttonsComponent"
:name="name"
:workspace="workspace"
@hide="hide()"
></component>
</div>
</div>
</Modal>
</template>
<script>
import modal from '@baserow/modules/core/mixins/modal'
import PremiumFeatures from '@baserow_premium/components/PremiumFeatures'
export default {
name: 'PremiumModal',
components: { PremiumFeatures },
mixins: [modal],
props: {
name: {
type: String,
required: true,
},
workspace: {
type: [Object, null],
required: false,
default: null,
},
},
computed: {
buttonsComponent() {
return this.$registry
.get('plugin', 'premium')
.getPremiumModalButtonsComponent()
},
},
}
</script>