e3f90377b5
* Create and Use ProjectList * ProjectList and WorkspaceList * Workspace Header * Header Actions Menu * Add projects to Workspace * Add middleware * Remove unused title * Rename WorkspaceList * useDebouncedSearch * Merge ProjectList into Dashboard * Make workspaceId reactive * Remove unneeded useSubscription * Merge Dashboard into index * Add fragments * Cache updates * gql * GQL * Linting updates * Updates from CR * Changes from CR * Changes from PR. Middleware added * Updates from CR * GQL * Updates from CR * Updates from CR * Updates from CR * Add id to WorkspaceHeader_Workspace * GQL * Fragment naming * Use identifier * Comment buttons not yet ready * Fix problem with pagination
12 lines
269 B
TypeScript
12 lines
269 B
TypeScript
export default defineNuxtRouteMiddleware(() => {
|
|
const isWorkspacesEnabled = useIsWorkspacesEnabled()
|
|
if (!isWorkspacesEnabled.value) {
|
|
return abortNavigation(
|
|
createError({
|
|
statusCode: 404,
|
|
message: 'Page not found'
|
|
})
|
|
)
|
|
}
|
|
})
|