1
0
mirror of https://gitlab.com/bramw/baserow.git synced 2024-11-24 16:36:46 +00:00
bramw_baserow/web-frontend/modules/core/plugins/hasFeature.js

10 lines
289 B
JavaScript

export default function ({ app }, inject) {
const { $registry } = app
function hasFeature(feature, forSpecificWorkspace) {
return Object.values($registry.getAll('plugin')).some((p) =>
p.hasFeature(feature, forSpecificWorkspace)
)
}
inject('hasFeature', hasFeature)
}