mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 08:18:42 +00:00
* Fix preview error with page parameter * Fix OIDC form support * Fix input border color * Fix some builder inputs * Clear some TODO MIGs * Clean comments * Update snapshot * Fix page title * Fix reactivity issue * refactor: replace individual RadioButtons with a RadioGroup component for choice option type selection. * Fix domain --------- Co-authored-by: Jonathan Adeline <jonathan@baserow.io>
24 lines
836 B
JavaScript
24 lines
836 B
JavaScript
/**
|
|
* This is a global mixin that's registered for every component. The purpose is to
|
|
* bind to the `mounted` hook and set the related route to the `routeMounted` store.
|
|
* This is used so that there is a reactive state of the mounted route. It can be
|
|
* used by any other process to reactively check if a route has fully loaded and is
|
|
* mounted, which can be needed if it depends on DOM elements to be rendered.
|
|
*/
|
|
export default defineNuxtPlugin((nuxtApp) => {
|
|
nuxtApp.vueApp.mixin({
|
|
mounted() {
|
|
if (
|
|
this.$route &&
|
|
// Skip components that don't have a layout because those are not Nuxt pages.
|
|
this.$route.meta.layout !== undefined
|
|
) {
|
|
this.$store.commit('routeMounted/SET_ROUTE_MOUNTED', {
|
|
mounted: true,
|
|
route: this.$route,
|
|
})
|
|
}
|
|
},
|
|
})
|
|
})
|