mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-02-07 14:19:18 +00:00
9 lines
289 B
JavaScript
9 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)
|
|
}
|