1
0
mirror of https://gitlab.com/bramw/baserow.git synced 2024-11-24 16:36:46 +00:00
bramw_baserow/web-frontend/modules/builder/mixins/applicationContext.js
2024-09-19 13:39:45 +00:00

24 lines
474 B
JavaScript

export default {
inject: { injectedApplicationContext: { from: 'applicationContext' } },
provide() {
return {
applicationContext: this.applicationContext,
}
},
props: {
applicationContextAdditions: {
type: Object,
required: false,
default: undefined,
},
},
computed: {
applicationContext() {
return {
...this.injectedApplicationContext,
...this.applicationContextAdditions,
}
},
},
}