mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-02-05 21:39:51 +00:00
33 lines
927 B
JavaScript
33 lines
927 B
JavaScript
import { BaserowPlugin } from '@baserow/modules/core/plugins'
|
|
import Impersonate from '@baserow_premium/components/sidebar/Impersonate'
|
|
import HighestLicenseTypeBadge from '@baserow_premium/components/sidebar/HighestLicenseTypeBadge'
|
|
import BaserowLogoShareLinkOption from '@baserow_premium/components/views/BaserowLogoShareLinkOption'
|
|
|
|
export class PremiumPlugin extends BaserowPlugin {
|
|
static getType() {
|
|
return 'premium'
|
|
}
|
|
|
|
getImpersonateComponent() {
|
|
return Impersonate
|
|
}
|
|
|
|
getHighestLicenseTypeBadge() {
|
|
return HighestLicenseTypeBadge
|
|
}
|
|
|
|
getAdditionalShareLinkOptions() {
|
|
return [BaserowLogoShareLinkOption]
|
|
}
|
|
|
|
hasFeature(feature, forSpecificWorkspace) {
|
|
return this.app.$licenseHandler.hasFeature(feature, forSpecificWorkspace)
|
|
}
|
|
|
|
/**
|
|
* A hook to provide different action buttons to the premium features modal.
|
|
*/
|
|
getPremiumModalButtonsComponent() {
|
|
return null
|
|
}
|
|
}
|