Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(entities-routes): invisible expressions editor sometimes #1814

Merged
merged 2 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ const state = reactive<RouteState<BaseRouteStateFields>>({
tags: '',
service_id: '',
...{
...(!props.routeId && { paths: [''] }),
...(!props.routeId && { paths: [''] }), // We don't expect this prop to be updated throughout the lifecycle of the component
regex_priority: 0,
path_handling: 'v0',
} as TraditionalRouteStateFields,
Expand All @@ -673,6 +673,10 @@ const state = reactive<RouteState<BaseRouteStateFields>>({
errorMessage: '',
})

watch(() => props.routeFlavors, (routeFlavors) => {
state.routeFlavors = routeFlavors
})

const exprEditorProtocol = computed(() => state.fields.protocols.split(',')[0])

const customMethods = ref<string[]>([''])
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { BaseFormConfig, KongManagerBaseFormConfig, KonnectBaseFormConfig } from '@kong-ui-public/entities-shared'
import type { RouteLocationRaw } from 'vue-router'
import type { Methods, Method } from './method-badge'
import type { Method, Methods } from './method-badge'

export enum RouteFlavor {
TRADITIONAL = 'traditional', // includes traditional_compatible
Expand Down
Loading