2021-04-22 11:51:15 +00:00
|
|
|
import { BaserowPlugin } from '@baserow/modules/core/plugins'
|
2024-07-31 13:41:49 +00:00
|
|
|
import Impersonate from '@baserow_premium/components/sidebar/Impersonate'
|
|
|
|
import HighestLicenseTypeBadge from '@baserow_premium/components/sidebar/HighestLicenseTypeBadge'
|
2022-09-26 08:56:26 +00:00
|
|
|
import BaserowLogoShareLinkOption from '@baserow_premium/components/views/BaserowLogoShareLinkOption'
|
2021-04-22 11:51:15 +00:00
|
|
|
|
2021-05-29 14:01:38 +00:00
|
|
|
export class PremiumPlugin extends BaserowPlugin {
|
2021-04-22 11:51:15 +00:00
|
|
|
static getType() {
|
2021-10-20 19:28:51 +00:00
|
|
|
return 'premium'
|
|
|
|
}
|
|
|
|
|
2024-07-31 13:41:49 +00:00
|
|
|
getImpersonateComponent() {
|
|
|
|
return Impersonate
|
|
|
|
}
|
|
|
|
|
|
|
|
getHighestLicenseTypeBadge() {
|
|
|
|
return HighestLicenseTypeBadge
|
2022-04-24 11:19:54 +00:00
|
|
|
}
|
2022-09-26 08:56:26 +00:00
|
|
|
|
|
|
|
getAdditionalShareLinkOptions() {
|
|
|
|
return [BaserowLogoShareLinkOption]
|
|
|
|
}
|
2023-04-19 14:51:10 +00:00
|
|
|
|
|
|
|
hasFeature(feature, forSpecificWorkspace) {
|
|
|
|
return this.app.$licenseHandler.hasFeature(feature, forSpecificWorkspace)
|
|
|
|
}
|
2023-06-12 07:42:52 +00:00
|
|
|
|
|
|
|
/**
|
2024-04-26 11:28:41 +00:00
|
|
|
* A hook to provide different action buttons to the premium features modal.
|
2023-06-12 07:42:52 +00:00
|
|
|
*/
|
2024-04-26 11:28:41 +00:00
|
|
|
getPremiumModalButtonsComponent() {
|
2023-06-12 07:42:52 +00:00
|
|
|
return null
|
|
|
|
}
|
2021-04-22 11:51:15 +00:00
|
|
|
}
|