1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-03-14 12:42:51 +00:00
bramw_baserow/premium/web-frontend/modules/baserow_premium/plugins.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
927 B
JavaScript
Raw Normal View History

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'
import BaserowLogoShareLinkOption from '@baserow_premium/components/views/BaserowLogoShareLinkOption'
2021-05-29 14:01:38 +00:00
export class PremiumPlugin extends BaserowPlugin {
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
}
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
}
}