mirror of
https://gitlab.com/bramw/baserow.git
synced 2024-11-24 16:36:46 +00:00
10 lines
289 B
JavaScript
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)
|
|
}
|